avctx->pix_fmt = AV_PIX_FMT_YUV420P;
h->gob_start_code_skipped = 0;
+ ff_mpv_idct_init(s);
ff_thread_once(&init_static_once, h261_decode_init_static);
retry:
init_get_bits(&s->gb, buf, buf_size * 8);
- if (!s->context_initialized)
- // we need the IDCT permutation for reading a custom matrix
- ff_mpv_idct_init(s);
-
ret = h261_decode_picture_header(h);
/* skip if the header was thrashed */
return 0;
}
-AVCodec ff_h261_decoder = {
+const AVCodec ff_h261_decoder = {
.name = "h261",
.long_name = NULL_IF_CONFIG_SMALL("H.261"),
.type = AVMEDIA_TYPE_VIDEO,