summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_h263_rfc2190.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-12-17 13:50:06 +0200
committerMartin Storsjö <martin@martin.st>2014-12-18 11:59:54 +0200
commitdf07c07b3de0a5e8890078944de1eb5cb8372ef8 (patch)
tree4511571145970c8f17c6050253139c2010c15a40 /libavformat/rtpdec_h263_rfc2190.c
parent42181740a3972e17d0097d28fabc9a1a60322d47 (diff)
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. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_h263_rfc2190.c')
-rw-r--r--libavformat/rtpdec_h263_rfc2190.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c
index 116db75065..d507ef7ef3 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) {