[FFmpeg-devel] [PATCH] mov/aac: skip initial aac padding

Michael Niedermayer michaelni at gmx.at
Sun Jul 15 16:28:47 CEST 2012


On Sun, Jul 15, 2012 at 04:17:55PM +0200, Nicolas George wrote:
> L'octidi 28 messidor, an CCXX, Michael Niedermayer a écrit :
> >  libavformat/isom.h |    1 +
> >  libavformat/mov.c  |   12 ++++++++++++
> >  tests/fate/aac.mak |   15 +++++++++++++++
> 
> Does the initial padding exist only when AAC is muxed into MOV?

no


> 
> If not, maybe a better solution would be to define AV_PKT_FLAG_FIRST (set
> when the packet is the first data packet in a stream), and let the AAC
> decoder set avctx->private->skip_samples when it is set.

this would fail when one seeks to the 2nd data packet and that still
needs skiping.


> 
> Or even simpler, maybe, let the AAC decoder set avctx->private->skip_samples
> initially and after a seek.

the amount of samples to skip can be encoder dependant, 2112 is just
the fallback value if there is nothing specified (i have no file that
specifies anything it seems so i implemented just that case)


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 2
"100% positive feedback" - "All either got their money back or didnt complain"
"Best seller ever, very honest" - "Seller refunded buyer after failed scam"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120715/44701703/attachment.asc>


More information about the ffmpeg-devel mailing list