aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-23 18:34:18 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-23 18:34:18 +0000
commit49837b8d248555a3c5ab82a90adfd01bd24b5bc9 (patch)
tree1e4091651bc5ab8e3251c44928e8606beb3ed5ca /libavformat/nutdec.c
parent2e01def0fe40e0d8c82299615e5302c7e9873e47 (diff)
downloadffmpeg-49837b8d248555a3c5ab82a90adfd01bd24b5bc9.tar.gz
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
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 293f67ddc3..eed644cd6c 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -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;