# HG changeset patch # User bcoudurier # Date 1156410560 0 # Node ID 8c80d41a11cc3fb2e7c3b3403e147411dd567480 # Parent 64be40fc28a586f2dd0e3f085cf24bef39f0734d dont set width/height for h261/h263/mpeg4 since they are oftenly wrong, let decoder init them diff -r 64be40fc28a5 -r 8c80d41a11cc mov.c --- a/mov.c Thu Aug 24 08:37:51 2006 +0000 +++ b/mov.c Thu Aug 24 09:09:20 2006 +0000 @@ -1029,7 +1029,20 @@ 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