diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 153668de45..73562882cd 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -1192,6 +1192,7 @@ static inline int get_avc_nalsize(H264Context *h, const uint8_t *buf, int i, nalsize = 0; if (*buf_index >= buf_size - h->nal_length_size) { + // the end of the buffer is reached, refill it. return AVERROR(EAGAIN); }