mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
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 df07c07b3d
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4d74bb24e3
commit
5fbf63ea39
@ -83,6 +83,7 @@ static int h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
|
|||||||
avio_close_dyn_buf(data->buf, &p);
|
avio_close_dyn_buf(data->buf, &p);
|
||||||
av_free(p);
|
av_free(p);
|
||||||
data->buf = NULL;
|
data->buf = NULL;
|
||||||
|
data->endbyte_bits = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len < 4) {
|
if (len < 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user