Mercurial > libavcodec.hg
comparison svq1.c @ 4229:304255e80196 libavcodec
fix bitstream to be correctly decoded by quicktime
author | bcoudurier |
---|---|
date | Wed, 22 Nov 2006 13:53:22 +0000 |
parents | 1cffc7036079 |
children | fc155ff94878 |
comparison
equal
deleted
inserted
replaced
4228:1cffc7036079 | 4229:304255e80196 |
---|---|
903 /* no checksum since frame code is 0x20 */ | 903 /* no checksum since frame code is 0x20 */ |
904 | 904 |
905 /* no embedded string either */ | 905 /* no embedded string either */ |
906 | 906 |
907 /* output 5 unknown bits (2 + 2 + 1) */ | 907 /* output 5 unknown bits (2 + 2 + 1) */ |
908 put_bits(&s->pb, 5, 0); | 908 put_bits(&s->pb, 5, 2); /* 2 needed by quicktime decoder */ |
909 | 909 |
910 for (i = 0; i < 7; i++) | 910 for (i = 0; i < 7; i++) |
911 { | 911 { |
912 if ((svq1_frame_size_table[i].width == s->frame_width) && | 912 if ((svq1_frame_size_table[i].width == s->frame_width) && |
913 (svq1_frame_size_table[i].height == s->frame_height)) | 913 (svq1_frame_size_table[i].height == s->frame_height)) |