mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Make the nut decoder read the ff_nut_video_tags to detect codec id of
the input file. This is required as Nut codec tags are not contained in ff_codec_bmp_tags. Originally committed as revision 23260 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2e01def0fe
commit
49837b8d24
@ -316,7 +316,9 @@ static int decode_stream_header(NUTContext *nut){
|
||||
{
|
||||
case 0:
|
||||
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tmp);
|
||||
st->codec->codec_id = av_codec_get_id(
|
||||
(const AVCodecTag * const []) { ff_codec_bmp_tags, ff_nut_video_tags, 0 },
|
||||
tmp);
|
||||
break;
|
||||
case 1:
|
||||
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
|
Loading…
Reference in New Issue
Block a user