Skip to content
Snippets Groups Projects
Commit 8ca170a7 authored by Vignesh Venkatasubramanian's avatar Vignesh Venkatasubramanian Committed by Michael Niedermayer
Browse files

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: default avatarVignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 0e7444f6
No related branches found
No related tags found
No related merge requests found
...@@ -201,9 +201,6 @@ static int webm_chunk_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -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); ret = oc->oformat->write_packet(oc, pkt);
if (ret < 0) if (ret < 0)
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment