summaryrefslogtreecommitdiff
path: root/libavformat/webm_chunk.c
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2015-04-27 14:47:03 -0700
committerMichael Niedermayer <michaelni@gmx.at>2015-04-28 02:27:01 +0200
commit8ca170a78ab6e50f44d27d8a6b4ad7ba1ed81f0c (patch)
treed93e72b7ad7dfa79a7404d7fee48ef7c9373e619 /libavformat/webm_chunk.c
parent0e7444f6e400b16282f6349e3c53bcb72e6e2ad9 (diff)
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 <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/webm_chunk.c')
-rw-r--r--libavformat/webm_chunk.c3
1 files changed, 0 insertions, 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;