[FFmpeg-cvslog] h264: return the consumed amountg in case of Q264

Michael Niedermayer git at videolan.org
Fri Dec 16 19:15:29 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 18:55:52 2011 +0100| [3d07e0aba0c9c29ed17a1becfae61b8b58f46cd1] | committer: Michael Niedermayer

h264: return the consumed amountg in case of Q264

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d07e0aba0c9c29ed17a1becfae61b8b58f46cd1
---

 libavcodec/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8a1784f..efeadb6 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;
     }



More information about the ffmpeg-cvslog mailing list