Browse Source

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>
tags/n2.7
Vignesh Venkatasubramanian Michael Niedermayer 10 years ago
parent
commit
8ca170a78a
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/webm_chunk.c

+ 0
- 3
libavformat/webm_chunk.c View 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;


Loading…
Cancel
Save