[FFmpeg-devel] [PATCHv2] mpegtsenc: Do not fail ADTS AAC muxing if the first frame is not ADTS

Michael Niedermayer michael at niedermayer.cc
Fri Jan 29 22:41:14 CET 2016


On Thu, Jan 14, 2016 at 07:37:21AM +0100, Hagen Schmidt wrote:
> On 15/12/15 08:00, Hagen Schmidt wrote:
> >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;
> ping

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

For every action, there is an equal and opposite reaction. -- Newton
For every man jailed for a minor crime, theres one person more that
will hate the government, some of them will become terrorists.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160129/a891f2fa/attachment.sig>


More information about the ffmpeg-devel mailing list