[FFmpeg-devel] [PATCHv2] mpegtsenc: Do not fail ADTS AAC muxing if the first frame is not ADTS
Hagen Schmidt
schmidthagen at googlemail.com
Tue Dec 15 08:00:48 CET 2015
Fixes ticket 279.
---
libavformat/mpegtsenc.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 19032f3..a0dca4a 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -1519,8 +1519,6 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
if (!ts_st->amux) {
av_log(s, AV_LOG_ERROR, "AAC bitstream not in ADTS format "
"and extradata missing\n");
- if (!st->nb_frames)
- return AVERROR_INVALIDDATA;
} else {
av_init_packet(&pkt2);
pkt2.data = pkt->data;
--
2.6.4
More information about the ffmpeg-devel
mailing list