Re: [FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread Hendrik Leppkes
On Tue, Mar 22, 2016 at 12:36 PM, Hendrik Leppkes wrote: > On Tue, Mar 22, 2016 at 11:35 AM, qw wrote: >> Hi, >> >> I am reading ffmpeg source code, and confused about the following logic in >> movenc.c, >> >> if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && >> (AV_RB16(pkt->

Re: [FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread Hendrik Leppkes
On Tue, Mar 22, 2016 at 11:35 AM, qw wrote: > Hi, > > I am reading ffmpeg source code, and confused about the following logic in > movenc.c, > > if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && > (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { > if (!s->streams[pkt->stream_

[FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread qw
Hi, I am reading ffmpeg source code, and confused about the following logic in movenc.c, if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { if (!s->streams[pkt->stream_index]->nb_frames) { av_log(s, AV_LOG_ERROR,

[FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread qw
Hi, I am reading ffmpeg source code, and confused about the following logic in movenc.c, if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { if (!s->streams[pkt->stream_index]->nb_frames) { av_log(s, AV_LOG_ERROR,