avcodec, avutil: allow more control about how samples are skipped

Multimedia / FFmpeg - wm4 [googlemail.com] - 2 October 2014 13:21 UTC

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.

cdd6f05 avcodec, avutil: allow more control about how samples are skipped
doc/APIchanges | 7 +++++++
libavcodec/avcodec.h | 1 +
libavcodec/options_table.h | 1 +
libavcodec/utils.c | 21 +++++++++++++++++++--
libavcodec/version.h | 4 ++--
libavutil/frame.h | 12 ++++++++++++
libavutil/version.h | 2 +-
7 files changed, 43 insertions(+), 5 deletions(-)

  • Share