[FFmpeg-cvslog] avcodec/hevc_refs: Silence "Could not find ref with POC" for CRA/BLA
Michael Niedermayer
git at videolan.org
Sat Mar 21 04:27:04 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar 15 19:42:48 2015 +0100| [294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=294bb6cbd7bdc52233ddfa8f88f99aaf0d64d183
---
libavcodec/hevc_refs.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc_refs.c b/libavcodec/hevc_refs.c
index f6596e8..fea3d12 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;
}
More information about the ffmpeg-cvslog
mailing list