On 6/9/2016 12:11 PM, Diego Biurrun wrote:
> From: Alexandra Hájková <[email protected]>
>
> ---
> libavcodec/eatgq.c | 34 +++++++++++++++++-----------------
> libavcodec/eatgv.c | 23 ++++++++++++-----------
> 2 files changed, 29 insertions(+), 28 deletions(-)
>
[...]
> @@ -156,10 +156,10 @@ static void tgq_decode_mb(TgqContext *s, AVFrame
> *frame, int mb_y, int mb_x)
>
> mode = bytestream2_get_byte(&s->gb);
> if (mode > 12) {
> - GetBitContext gb;
> - init_get_bits(&gb, s->gb.buffer, FFMIN(s->gb.buffer_end -
> s->gb.buffer, mode) * 8);
> + BitstreamContext bc;
> + bitstream_init(&bc, s->gb.buffer, FFMIN(s->gb.buffer_end -
> s->gb.buffer, mode) * 8);
bitstream_init8(). There are other similar cases in the patchset,
like adtsenc.
Also maybe replace the custom bytestream remaining size check
here with bytestream2_get_bytes_left(&s->gb) while at it.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel