# HG changeset patch # User michaelni # Date 1033421803 0 # Node ID e55b91623e09185e65b43e9c5c61acfccc765266 # Parent dcbcf9676c9f07d82315f43d34fded9a09767272 fixing rv10, this isnt the cleanest solution (parsing the packet header in the codec & creating it in the muxer) but it was that way before things broke, and its the simplest solution diff -r dcbcf9676c9f -r e55b91623e09 rv10.c --- a/rv10.c Mon Sep 30 16:14:14 2002 +0000 +++ b/rv10.c Mon Sep 30 21:36:43 2002 +0000 @@ -223,18 +223,10 @@ /* write RV 1.0 compatible frame header */ void rv10_encode_picture_header(MpegEncContext *s, int picture_number) { - int full_frame= 1; + int full_frame= 0; align_put_bits(&s->pb); - if(full_frame){ - put_bits(&s->pb, 8, 0xc0); /* packet header */ - put_bits(&s->pb, 16, 0x4000); /* len */ - put_bits(&s->pb, 16, 0x4000); /* pos */ - } - - put_bits(&s->pb, 8, picture_number&0xFF); - put_bits(&s->pb, 1, 1); /* marker */ put_bits(&s->pb, 1, (s->pict_type == P_TYPE)); @@ -276,6 +268,7 @@ int mb_count, pb_frame, marker, h, full_frame; int pic_num, unk; + //XXX/FIXME this should be done in the demuxer not here /* skip packet header */ h = get_bits(&s->gb, 8); if ((h & 0xc0) == 0xc0) {