+ // Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext
+ avctx->properties = st->codec->properties;
+ avctx->codec = st->codec->codec;
+ avctx->qmin = st->codec->qmin;
+ avctx->qmax = st->codec->qmax;
+ avctx->coded_width = st->codec->coded_width;
+ avctx->coded_height = st->codec->coded_height;
+