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>
(cherry picked from commit df07c07b3de0a5e8890078944de1eb5cb8372ef8)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Martin Storsjö 2014-12-17 13:50:06 +02:00 committed by Luca Barbato
parent 21683549ed
commit cbf31d5f15

View File

@ -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) {