On 17.12.2014 13:41, Martin Storsjö wrote:
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.

CC: [email protected]
---
  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 116db75..d507ef7 100644
--- a/libavformat/rtpdec_h263_rfc2190.c
+++ b/libavformat/rtpdec_h263_rfc2190.c
@@ -83,6 +83,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) {

Okay.

Best regards,
Thomas.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to