diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-15 19:42:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-21 04:09:46 +0100 |
commit | 294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183 (patch) | |
tree | aff9ba01eb3908fd455b4740d251dffe3f7b504e | |
parent | 3c5c6870a7ffa4997928caddb0802c7a1e5fcfeb (diff) | |
download | android_external_ffmpeg-294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183.tar.gz android_external_ffmpeg-294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183.tar.bz2 android_external_ffmpeg-294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183.zip |
avcodec/hevc_refs: Silence "Could not find ref with POC" for CRA/BLA
Avoids error messages during seeking
Found-by: cousin_luigi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc_refs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c index f6596e8d1e..fea3d125ba 100644 --- a/libavcodec/hevc_refs.c +++ b/libavcodec/hevc_refs.c @@ -386,8 +386,9 @@ static HEVCFrame *find_ref_idx(HEVCContext *s, int poc) } } - av_log(s->avctx, AV_LOG_ERROR, - "Could not find ref with POC %d\n", poc); + if (s->nal_unit_type != NAL_CRA_NUT && !IS_BLA(s)) + av_log(s->avctx, AV_LOG_ERROR, + "Could not find ref with POC %d\n", poc); return NULL; } |