diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-02-10 10:30:05 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-02-19 08:26:30 +0100 |
commit | 445a7d48b13c8c6607b69156233fc8d5fed3b396 (patch) | |
tree | 26eabe049019664b187277a293ac26d25416391b /libavcodec/mpegvideo.h | |
parent | 5455384219d873d0d2ddaeb7098da659f4207058 (diff) | |
download | ffmpeg-445a7d48b13c8c6607b69156233fc8d5fed3b396.tar.gz |
mpegvideo_enc: switch to encode2().
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index e542369292..9753d1064c 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -261,6 +261,14 @@ typedef struct MpegEncContext { * offsets used in asm. */ int64_t user_specified_pts;///< last non zero pts from AVFrame which was passed into avcodec_encode_video() + /** + * pts difference between the first and second input frame, used for + * calculating dts of the first frame when there's a delay */ + int64_t dts_delta; + /** + * reordered pts to be used as dts for the next output frame when there's + * a delay */ + int64_t reordered_pts; /** bit output */ PutBitContext pb; @@ -694,7 +702,8 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx); void ff_MPV_frame_end(MpegEncContext *s); int ff_MPV_encode_init(AVCodecContext *avctx); int ff_MPV_encode_end(AVCodecContext *avctx); -int ff_MPV_encode_picture(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data); +int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, + const AVFrame *frame, int *got_packet); void ff_MPV_common_init_mmx(MpegEncContext *s); void ff_MPV_common_init_axp(MpegEncContext *s); void ff_MPV_common_init_mmi(MpegEncContext *s); |