• wm4's avatar
    avcodec, avutil: allow more control about how samples are skipped · cdd6f059
    wm4 authored
    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.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    cdd6f059
APIchanges 83.8 KB