- bytestream2_init(&s->gb, avctx->extradata, avctx->extradata_size);
- if (bytestream2_get_bytes_left(&s->gb) < 16 * 8 + 4 * 256) {
- av_frame_free(&s->frame);
- return AVERROR_INVALIDDATA;
- }
-
- bytestream2_skipu(&s->gb, 16 * 8);
+ bytestream2_init(&gb, avctx->extradata, avctx->extradata_size);
+ bytestream2_skipu(&gb, 16 * 8);