[FFmpeg-devel] [PATCH 6/6] avformat/mxfdec: add support for recognizing timed text streams

Tomas Härdin tjoppen at acc.umu.se
Tue Jun 5 14:31:34 EEST 2018


tor 2018-05-31 klockan 02:05 +0200 skrev Marton Balint:
> > Signed-off-by: Marton Balint <cus at passwd.hu>
> ---
>  libavformat/mxfdec.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> +            type = avcodec_get_type(st->codecpar->codec_id);
> +            if (type == AVMEDIA_TYPE_SUBTITLE)
> +                st->codecpar->codec_type = type;

This feels like something that belongs in more generic parts of lavf.
Filling codecpar with defaults for some given codec_id that is.

/Tomas


More information about the ffmpeg-devel mailing list