summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-01-23 15:38:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-01-23 15:38:07 +0000
commit683ab79ca036036fef4b9432ffe50901f92c0a8c (patch)
treeb26edf2b1af7b8d526e3d02ff43c719fa681f10c /libavformat
parent742482290f234b1d15fce67d1044889b065d3bb9 (diff)
flv follows in movs footsteps and has random trash in the width/height fields
Originally committed as revision 7668 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index a8338028ae..6295f1a567 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -165,8 +165,8 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
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) {