Commit d57b7316 authored by Michael Niedermayer's avatar Michael Niedermayer

10l (overwriting w/h with 0)

Originally committed as revision 4289 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7dc9ed11
...@@ -840,16 +840,13 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) ...@@ -840,16 +840,13 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
get_be32(pb); /* vendor */ get_be32(pb); /* vendor */
get_be32(pb); /* temporal quality */ get_be32(pb); /* temporal quality */
get_be32(pb); /* spacial quality */ get_be32(pb); /* spacial quality */
st->codec.width = get_be16(pb); /* width */ if(st->codec.codec_id == CODEC_ID_MPEG4){ //FIXME this is silly
st->codec.height = get_be16(pb); /* height */ get_be16(pb);
#if 1 get_be16(pb);
if (st->codec.codec_id == CODEC_ID_MPEG4) { }else{
/* in some MPEG4 the width/height are not correct, so st->codec.width = get_be16(pb); /* width */
we ignore this info */ st->codec.height = get_be16(pb); /* height */
st->codec.width = 0;
st->codec.height = 0;
} }
#endif
get_be32(pb); /* horiz resolution */ get_be32(pb); /* horiz resolution */
get_be32(pb); /* vert resolution */ get_be32(pb); /* vert resolution */
get_be32(pb); /* data size, always 0 */ get_be32(pb); /* data size, always 0 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment