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: Michael Niedermayer <michaelni@gmx.at>
{"chunks","Frame data might be split into multiple chunks",0,AV_OPT_TYPE_CONST,{.i64=CODEC_FLAG2_CHUNKS},INT_MIN,INT_MAX,V|D,"flags2"},
{"showall","Show all frames before the first keyframe",0,AV_OPT_TYPE_CONST,{.i64=CODEC_FLAG2_SHOW_ALL},INT_MIN,INT_MAX,V|D,"flags2"},
{"export_mvs","export motion vectors through frame side data",0,AV_OPT_TYPE_CONST,{.i64=CODEC_FLAG2_EXPORT_MVS},INT_MIN,INT_MAX,V|D,"flags2"},
{"skip_manual","do not skip samples and export skip information as frame side data",0,AV_OPT_TYPE_CONST,{.i64=CODEC_FLAG2_SKIP_MANUAL},INT_MIN,INT_MAX,V|D,"flags2"},