libavformat/webm_chunk: Write first audio packet.
authorVignesh Venkatasubramanian <vigneshv@google.com>
Mon, 27 Apr 2015 21:47:03 +0000 (14:47 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Apr 2015 00:27:01 +0000 (02:27 +0200)
Fix a bug where the chunk muxer doesn't write the very first audio
packet (with pts == 0).

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/webm_chunk.c

index 48ea6f0..6d3d5d6 100644 (file)
@@ -201,9 +201,6 @@ static int webm_chunk_write_packet(AVFormatContext *s, AVPacket *pkt)
         }
     }
 
-    if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && pkt->pts == 0) {
-        goto fail;
-    }
     ret = oc->oformat->write_packet(oc, pkt);
     if (ret < 0)
         goto fail;