Mercurial > libavformat.hg
changeset 1719:f813f8755dd1 libavformat
flv follows in movs footsteps and has random trash in the width/height fields
author | michael |
---|---|
date | Tue, 23 Jan 2007 15:38:07 +0000 |
parents | 3eb35e92a29a |
children | 1a8d1f66c867 |
files | flvdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Tue Jan 23 15:23:41 2007 +0000 +++ b/flvdec.c Tue Jan 23 15:38:07 2007 +0000 @@ -165,8 +165,8 @@ if(!strcmp(key, "stereo") && acodec) acodec->channels = num_val > 0 ? 2 : 1; } else if(amf_type == AMF_DATA_TYPE_NUMBER) { if(!strcmp(key, "duration")) s->duration = num_val * AV_TIME_BASE; - else if(!strcmp(key, "width") && vcodec && num_val > 0) vcodec->width = num_val; - else if(!strcmp(key, "height") && vcodec && num_val > 0) vcodec->height = num_val; +// else if(!strcmp(key, "width") && vcodec && num_val > 0) vcodec->width = num_val; +// else if(!strcmp(key, "height") && vcodec && num_val > 0) vcodec->height = num_val; else if(!strcmp(key, "audiocodecid") && acodec) flv_set_audio_codec(s, astream, (int)num_val << FLV_AUDIO_CODECID_OFFSET); else if(!strcmp(key, "videocodecid") && vcodec) flv_set_video_codec(s, vstream, (int)num_val); else if(!strcmp(key, "audiosamplesize") && acodec && num_val >= 0) {