Mercurial > libavformat.hg
changeset 6039:eeb6e3c4c32b libavformat
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.
author | stefano |
---|---|
date | Sun, 23 May 2010 18:34:18 +0000 |
parents | d0ea87d82842 |
children | 2bab410094e0 |
files | nutdec.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nutdec.c Sun May 23 18:34:15 2010 +0000 +++ b/nutdec.c Sun May 23 18:34:18 2010 +0000 @@ -316,7 +316,9 @@ { 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;