]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/asfenc.c
Do not try to parse empty strf tags.
[ffmpeg] / libavformat / asfenc.c
index 0996b7912c65a0d358344162f6f9863cb3e65bee..5c6a81fb71ae4143f59886d801796c980d97d1b4 100644 (file)
@@ -434,10 +434,6 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
         if (enc->codec_type == AVMEDIA_TYPE_AUDIO) {
             /* WAVEFORMATEX header */
             int wavsize = ff_put_wav_header(pb, enc);
-            if ((enc->codec_id != CODEC_ID_MP3) && (enc->codec_id != CODEC_ID_MP2) && (enc->codec_id != CODEC_ID_ADPCM_IMA_WAV) && (enc->extradata_size==0)) {
-                wavsize += 2;
-                avio_wl16(pb, 0);
-            }
 
             if (wavsize < 0)
                 return -1;