1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

h264: Do not print an error when the buffer has to be refilled

Partially amends 9469370fb32679352e66826daf77bdd2e6f067b5
This commit is contained in:
Luca Barbato 2015-08-06 11:55:48 +02:00
parent 9469370fb3
commit 0f562f5b83

View File

@ -1274,11 +1274,8 @@ static int get_avc_nalsize(H264Context *h, const uint8_t *buf,
int i, nalsize = 0; int i, nalsize = 0;
if (*buf_index >= buf_size - h->nal_length_size) { if (*buf_index >= buf_size - h->nal_length_size) {
av_log(h->avctx, AV_LOG_ERROR, // the end of the buffer is reached, refill it.
"AVC: The buffer size %d is too short to read " return AVERROR(EAGAIN);
"the nal length size %d at the offset %d.\n",
buf_size, h->nal_length_size, *buf_index);
return AVERROR_INVALIDDATA;
} }
for (i = 0; i < h->nal_length_size; i++) for (i = 0; i < h->nal_length_size; i++)