[FFmpeg-cvslog] h264: Do not print an error when the buffer has to be refilled
Luca Barbato
git at videolan.org
Mon Aug 10 11:13:55 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Aug 6 11:55:48 2015 +0200| [0f562f5b833d603e04123d198c59f8b2b5eb43e4] | committer: Luca Barbato
h264: Do not print an error when the buffer has to be refilled
Partially amends 9469370fb32679352e66826daf77bdd2e6f067b5
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f562f5b833d603e04123d198c59f8b2b5eb43e4
---
libavcodec/h264.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index bf2ae36..d4cb030 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1274,11 +1274,8 @@ static int get_avc_nalsize(H264Context *h, const uint8_t *buf,
int i, nalsize = 0;
if (*buf_index >= buf_size - h->nal_length_size) {
- av_log(h->avctx, AV_LOG_ERROR,
- "AVC: The buffer size %d is too short to read "
- "the nal length size %d at the offset %d.\n",
- buf_size, h->nal_length_size, *buf_index);
- return AVERROR_INVALIDDATA;
+ // the end of the buffer is reached, refill it.
+ return AVERROR(EAGAIN);
}
for (i = 0; i < h->nal_length_size; i++)
More information about the ffmpeg-cvslog
mailing list