aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-08-24 22:41:52 -0300
committerJames Almer <jamrial@gmail.com>2019-08-24 22:41:52 -0300
commitc300fe13b6294f6386803feff685b52b3571656c (patch)
treefd9bae6ddfb77c52e3995b677b9055fad89c6a51
parent21d7eeafc134b111bb992ee51b02e7ca00d76e23 (diff)
downloadffmpeg-c300fe13b6294f6386803feff685b52b3571656c.tar.gz
avcodec/mlp_parser: export AVCodecContext frame_size
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/mlp_parser.c1
1 files changed, 1 insertions, 0 deletions
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) {