[FFmpeg-devel] [PATCH] avcodec, avutil: allow more control about how samples are skipped

Michael Niedermayer michaelni at gmx.at
Sun Sep 28 02:30:39 CEST 2014


On Sat, Sep 27, 2014 at 04:47:09PM +0200, wm4 wrote:
> Add CODEC_FLAG2_SKIP_MANUAL (exposed as "skip_manual"), which makes
> the decoder export sample skip information via side data, instead
> of applying it automatically. The format of the side data is the
> same as AV_PKT_DATA_SKIP_SAMPLES, but since AVPacket and AVFrame
> side data constants overlap, AV_FRAME_DATA_SKIP_SAMPLES needs to
> be introduced.
> 
> This is useful for applications which want to do the timestamp
> calculations manually, or which actually want to retrieve the
> padding.

patch should be ok


> ---
> I'm doing this because my timestamps are doubles, and can't be
> expressed in integer timebases. I also think libavcodec shouldn't
> mess with timestamps at all, just pass them through.

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

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140928/d87216f1/attachment.asc>


More information about the ffmpeg-devel mailing list