From c300fe13b6294f6386803feff685b52b3571656c Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 24 Aug 2019 22:41:52 -0300 Subject: [PATCH] avcodec/mlp_parser: export AVCodecContext frame_size Signed-off-by: James Almer --- libavcodec/mlp_parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index 9a076f6a7f..b5d3ff7226 100644 --- a/libavcodec/mlp_parser.c +++ b/libavcodec/mlp_parser.c @@ -165,6 +165,7 @@ static int mlp_parse(AVCodecParserContext *s, else avctx->sample_fmt = AV_SAMPLE_FMT_S16; avctx->sample_rate = mh.group1_samplerate; + avctx->frame_size = s->duration = mh.access_unit_size; if(!avctx->channels || !avctx->channel_layout) {