[PATCH 07/11] Make the nut decoder read the ff_nut_video_tags to detect codec id of the input file.
Stefano Sabatini
stefano.sabatini-lala
Sat May 22 17:12:58 CEST 2010
This is required as Nut codec tags are not contained in
ff_codec_bmp_tags.
---
libavformat/nutdec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 293f67d..eed644c 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;
--
1.7.1
--VbJkn9YxBvnuCH5J--
More information about the ffmpeg-devel
mailing list