From 8ca170a78ab6e50f44d27d8a6b4ad7ba1ed81f0c Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Date: Mon, 27 Apr 2015 14:47:03 -0700 Subject: libavformat/webm_chunk: Write first audio packet. Fix a bug where the chunk muxer doesn't write the very first audio packet (with pts == 0). Signed-off-by: Vignesh Venkatasubramanian Signed-off-by: Michael Niedermayer --- libavformat/webm_chunk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c index 48ea6f0f83..6d3d5d64e6 100644 --- a/libavformat/webm_chunk.c +++ b/libavformat/webm_chunk.c @@ -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; -- cgit v1.2.3