[FFmpeg-devel] [PATCH 1/2] lavc: Adding seek_preroll to AVCodecContext

Michael Niedermayer michaelni at gmx.at
Sat Oct 12 00:05:19 CEST 2013


On Fri, Oct 11, 2013 at 11:47:37AM -0700, Vignesh Venkatasubramanian wrote:
> seek_preroll field is added to the AVCodecContext struct. It indicates
> the number of samples to be discarded whenever there is a discontinuity.
> The minor version is bumped accordingly.
> 
> Signed-off-by: Vignesh Venkatasubramanian <vigneshv at google.com>
> ---
>  libavcodec/avcodec.h | 7 +++++++
>  libavcodec/version.h | 2 +-
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 2917a2f..89c0486 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -2881,6 +2881,13 @@ typedef struct AVCodecContext {
>       * - encoding: unused
>       */
>      int skip_alpha;
> +
> +    /**
> +     * Number of samples to skip after a discontinuity
> +     * - decoding: unused
> +     * - encoding: set by libavcodec
> +     */
> +    int seek_preroll;
>  } AVCodecContext;

this needs accessors to ensure ABI compatibility on accesses from
outside avcodec
see MAKE_ACCESSORS()

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

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- 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/20131012/609b0532/attachment.asc>


More information about the ffmpeg-devel mailing list