summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-20 02:19:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-20 02:46:09 +0200
commitba2cf854d03ac8f563af5f71dfba27f7bd857a06 (patch)
tree3972f45701fc12f25821195b429a01a51073a3db /libavformat/avidec.c
parenta93c221ccd7a036de052e79659fe5b082f586279 (diff)
lavc: move AVRn to a seperate decoder.
The special cases in demuxers and decoders are a mess otherwise (and more would be needed to support it fully) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index d3bb8d85f9..a70a0113a0 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -635,11 +635,6 @@ static int avi_read_header(AVFormatContext *s)
st->codec->codec_tag = tag1;
st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tag1);
st->need_parsing = AVSTREAM_PARSE_HEADERS; // This is needed to get the pict type which is necessary for generating correct pts.
- // Support "Resolution 1:1" for Avid AVI Codec
- if(tag1 == MKTAG('A', 'V', 'R', 'n') &&
- st->codec->extradata_size >= 31 &&
- !memcmp(&st->codec->extradata[28], "1:1", 3))
- st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
if(st->codec->codec_tag==0 && st->codec->height > 0 && st->codec->extradata_size < 1U<<30){
st->codec->extradata_size+= 9;