[FFmpeg-devel] [PATCH 2/3] lavc: add pkt_timbase to allow avcodec to adjust pkt_dts/pts when needed

Paul B Mahol onemda at gmail.com
Thu Jul 12 22:46:38 CEST 2012


On 7/12/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavcodec/avcodec.h       |   12 ++++++++++++
>  libavcodec/options_table.h |    1 +
>  libavcodec/utils.c         |    2 ++
>  3 files changed, 15 insertions(+)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index c9419ef..0a36463 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -2943,6 +2943,15 @@ typedef struct AVCodecContext {
>      uint64_t vbv_delay;
>
>      /**
> +     * Timebase in which pkt_dts/pts and AVPacket.dts/pts are.
> +     * Code outside libavcodec should access this field using:
> +     * avcodec_set_pkt_timebase(avctx)
> +     * - encoding unused.
> +     * - decodimg set by user
> +     */
> +    AVRational pkt_timebase;
> +
> +    /**

This require a major version bump.


More information about the ffmpeg-devel mailing list