[FFmpeg-cvslog] rtpdec_h263_rfc2190: Clear the stored bits if discarding buffered data

Martin Storsjö git at videolan.org
Wed Feb 4 17:17:52 CET 2015


ffmpeg | branch: release/1.2 | Martin Storsjö <martin at martin.st> | Wed Dec 17 13:50:06 2014 +0200| [237cf31a573674d015cf93d319a56b368a862ebd] | committer: Michael Niedermayer

rtpdec_h263_rfc2190: Clear the stored bits if discarding buffered data

If we throw away the buffered incomplete frame, make sure to also
throw away the buffered bits of an incomplete byte at the same
time.

(cherry picked from commit df07c07b3de0a5e8890078944de1eb5cb8372ef8)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/rtpdec_h263_rfc2190.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c
index 4b6e996..d741ef0 100644
--- a/libavformat/rtpdec_h263_rfc2190.c
+++ b/libavformat/rtpdec_h263_rfc2190.c
@@ -82,6 +82,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
         avio_close_dyn_buf(data->buf, &p);
         av_free(p);
         data->buf = NULL;
+        data->endbyte_bits = 0;
     }
 
     if (len < 4) {



More information about the ffmpeg-cvslog mailing list