Browse Source

dont set width/height for h261/h263/mpeg4 since they are oftenly wrong, let decoder init them

Originally committed as revision 6069 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 19 years ago
parent
commit
d00f8e1771
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      libavformat/mov.c

+ 13
- 0
libavformat/mov.c View File

@@ -1029,7 +1029,20 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
st->codec->sample_rate= sc->time_scale;
}

/* special codec parameters handling */
switch (st->codec->codec_id) {
#ifdef CONFIG_H261_DECODER
case CODEC_ID_H261:
#endif
#ifdef CONFIG_H263_DECODER
case CODEC_ID_H263:
#endif
#ifdef CONFIG_MPEG4_DECODER
case CODEC_ID_MPEG4:
#endif
st->codec->width= 0; /* let decoder init width/height */
st->codec->height= 0;
break;
#ifdef CONFIG_FAAD
case CODEC_ID_AAC:
#endif


Loading…
Cancel
Save