summaryrefslogtreecommitdiff
path: root/libav/rm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-01 19:29:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-01 19:29:10 +0000
commit144f062500fec248ea93b6621568c7052cb34c54 (patch)
treec1af19d8964ed6bc1c7ac284c3bbe0a1d748f031 /libav/rm.c
parente41e834272ee8cb15f9c386afc88aaa84bfaec7e (diff)
rv10 cleanup (de)muxer still needs to be cleaned up (still searching volunteer for that ;) )
Originally committed as revision 988 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/rm.c')
-rw-r--r--libav/rm.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/libav/rm.c b/libav/rm.c
index 4973fb5280..e8efbe112b 100644
--- a/libav/rm.c
+++ b/libav/rm.c
@@ -591,12 +591,9 @@ static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
h263_hack_version = get_be32(pb);
switch(h263_hack_version) {
case 0x10000000:
- st->codec.sub_id = 0;
- st->codec.codec_id = CODEC_ID_RV10;
- break;
case 0x10003000:
case 0x10003001:
- st->codec.sub_id = 3;
+ st->codec.sub_id = h263_hack_version;
st->codec.codec_id = CODEC_ID_RV10;
break;
default:
@@ -681,7 +678,6 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
goto redo;
}
-#if 0 // XXX/FIXME this is done in the codec currently, but should be done here ...
if (st->codec.codec_type == CODEC_TYPE_VIDEO) {
int full_frame, h, pic_num;
@@ -705,15 +701,11 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
/* picture number */
pic_num= get_byte(pb);
- av_new_packet(pkt, len+1);
- pkt->stream_index = i;
-
- //XXX/FIXME: is this a good idea?
- pkt->data[0]= h; //store header, its needed for decoding
-
- get_buffer(pb, pkt->data+1, len);
+ //XXX/FIXME/HACK, demuxer should be fixed to send complete frames ...
+ if(st->codec.slice_offset==NULL) st->codec.slice_offset= (int*)malloc(sizeof(int));
+ st->codec.slice_count= full_frame;
+ st->codec.slice_offset[0]= 0;
}
-#endif
av_new_packet(pkt, len);
pkt->stream_index = i;