Skip to content
Snippets Groups Projects
Commit 583a6431 authored by Hagen Schmidt's avatar Hagen Schmidt Committed by Michael Niedermayer
Browse files

mpegtsenc: Do not fail ADTS AAC muxing if the first frame is not ADTS


Fixes ticket 279.

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1e2c2622
No related branches found
No related tags found
Loading
...@@ -1523,8 +1523,6 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) ...@@ -1523,8 +1523,6 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
if (!ts_st->amux) { if (!ts_st->amux) {
av_log(s, AV_LOG_ERROR, "AAC bitstream not in ADTS format " av_log(s, AV_LOG_ERROR, "AAC bitstream not in ADTS format "
"and extradata missing\n"); "and extradata missing\n");
if (!st->nb_frames)
return AVERROR_INVALIDDATA;
} else { } else {
av_init_packet(&pkt2); av_init_packet(&pkt2);
pkt2.data = pkt->data; pkt2.data = pkt->data;
......
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