diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-24 09:09:20 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-08-24 09:09:20 +0000 |
commit | d00f8e177145dfea67360b15183b55393e6eb7b7 (patch) | |
tree | 64bcea2bb9b1cb7ae6d109966f824bad9cc21340 /libavformat/mov.c | |
parent | 6430ce0f727f93600742cc3da5750b102b568857 (diff) | |
download | ffmpeg-d00f8e177145dfea67360b15183b55393e6eb7b7.tar.gz |
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
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 10c2be3016..1b8ef293a6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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 |