changeset 1063:f0de744f87f9 libavformat

set width and height even for mpeg4, pix_fmt to NONE will force decoding anwyay
author bcoudurier
date Wed, 19 Apr 2006 14:18:13 +0000
parents 008ee39dd182
children bd570485d419
files mov.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 */