summaryrefslogtreecommitdiff
path: root/libavformat/iff.c
diff options
context:
space:
mode:
authorSebastian Vater <cdgs.basty@googlemail.com>2010-05-13 15:39:40 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2010-05-13 15:39:40 +0000
commit65d213ec86019dd1dbc847ca7dde75dc7bd68b82 (patch)
tree5c08ae9353b1115180e9329280cddcc3e65a50a5 /libavformat/iff.c
parentebcf7c3227906382205141beb2d0467f245472d1 (diff)
Move handling of paletted data to the IFF demuxer. This allows future
handling of things such as masking/EHB/HAM for this type of data. Patch by Sebastian Vater <cdgs basty googlemail com>. Originally committed as revision 23112 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/iff.c')
-rw-r--r--libavformat/iff.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libavformat/iff.c b/libavformat/iff.c
index 5087c2bf33..fcb3ff6b26 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -256,13 +256,7 @@ static int iff_read_header(AVFormatContext *s,
case AVMEDIA_TYPE_VIDEO:
switch (compression) {
case BITMAP_RAW:
- if (st->codec->codec_tag == ID_ILBM) {
st->codec->codec_id = CODEC_ID_IFF_ILBM;
- } else {
- st->codec->codec_id = CODEC_ID_RAWVIDEO;
- st->codec->pix_fmt = PIX_FMT_PAL8;
- st->codec->codec_tag = 0;
- }
break;
case BITMAP_BYTERUN1:
st->codec->codec_id = CODEC_ID_IFF_BYTERUN1;
@@ -299,18 +293,6 @@ static int iff_read_packet(AVFormatContext *s,
return AVERROR(ENOMEM);
}
interleave_stereo(sample_buffer, pkt->data, PACKET_SIZE);
- } else if (st->codec->codec_id == CODEC_ID_RAWVIDEO) {
- if(av_new_packet(pkt, iff->body_size + AVPALETTE_SIZE) < 0) {
- return AVERROR(ENOMEM);
- }
-
- ret = ff_cmap_read_palette(st->codec, (uint32_t*)(pkt->data + iff->body_size));
- if (ret < 0)
- return ret;
- av_freep(&st->codec->extradata);
- st->codec->extradata_size = 0;
-
- ret = get_buffer(pb, pkt->data, iff->body_size);
} else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
ret = av_get_packet(pb, pkt, iff->body_size);
} else {