# HG changeset patch # User bcoudurier # Date 1145456293 0 # Node ID f0de744f87f9fdb9e0377675d94fbb9c20108b1d # Parent 008ee39dd1825a6012e1546087e8f1db30154c6b set width and height even for mpeg4, pix_fmt to NONE will force decoding anwyay diff -r 008ee39dd182 -r f0de744f87f9 mov.c --- a/mov.c Wed Apr 19 12:56:28 2006 +0000 +++ b/mov.c Wed Apr 19 14:18:13 2006 +0000 @@ -967,13 +967,10 @@ get_be32(pb); /* vendor */ get_be32(pb); /* temporal quality */ get_be32(pb); /* spacial quality */ - if(st->codec->codec_id == CODEC_ID_MPEG4){ //FIXME this is silly - get_be16(pb); - get_be16(pb); - }else{ - st->codec->width = get_be16(pb); /* width */ - st->codec->height = get_be16(pb); /* height */ - } + + st->codec->width = get_be16(pb); /* width */ + st->codec->height = get_be16(pb); /* height */ + get_be32(pb); /* horiz resolution */ get_be32(pb); /* vert resolution */ get_be32(pb); /* data size, always 0 */