aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 18:55:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-16 19:05:19 +0100
commit3d07e0aba0c9c29ed17a1becfae61b8b58f46cd1 (patch)
treef8c4bcd7c0b8d75aab6575685e586ecdd399d576 /libavcodec/h264.c
parent227960427b726eaa6c83702e3d49679754cbc322 (diff)
downloadffmpeg-3d07e0aba0c9c29ed17a1becfae61b8b58f46cd1.tar.gz
h264: return the consumed amountg in case of Q264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8a1784f94f..efeadb6b9d 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4113,7 +4113,7 @@ not_extra:
if(!(s->flags2 & CODEC_FLAG2_CHUNKS) && !s->current_picture_ptr){
if (avctx->skip_frame >= AVDISCARD_NONREF ||
buf_size >= 4 && !memcmp("Q264", buf, 4))
- return 0;
+ return buf_size;
av_log(avctx, AV_LOG_ERROR, "no frame!\n");
return -1;
}