diff options
author | Martin Storsjö <martin@martin.st> | 2014-12-17 13:50:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-12 17:10:35 +0100 |
commit | 5fbf63ea394e6a3ab2abf34628721cfa53e81182 (patch) | |
tree | 37dc5447a73b3872809de9909fbf8c9aae3c5f22 /libavformat | |
parent | 4d74bb24e39fdadd0aed3c3fdb5fa156468c7ea6 (diff) | |
download | ffmpeg-5fbf63ea394e6a3ab2abf34628721cfa53e81182.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec_h263_rfc2190.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c index a2279013dc..8a36e5334c 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) { |