diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-10-21 17:40:23 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-10-21 17:40:23 +0000 |
commit | 1e51d801d349154fc73fdd99ec0fc1bf8a6f4e05 (patch) | |
tree | 21906788216b2afc76ee4041711f799cae0a803d /libav/avformat.h | |
parent | 6b10e6e48c970476db90f7efc80a1f79629ff452 (diff) | |
download | ffmpeg-1e51d801d349154fc73fdd99ec0fc1bf8a6f4e05.tar.gz |
the new output PTS handling is now generic
Originally committed as revision 1058 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/avformat.h')
-rw-r--r-- | libav/avformat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libav/avformat.h b/libav/avformat.h index d8679d164d..1fc099a145 100644 --- a/libav/avformat.h +++ b/libav/avformat.h @@ -84,6 +84,7 @@ typedef struct AVOutputFormat { enum CodecID audio_codec; /* default audio codec */ enum CodecID video_codec; /* default video codec */ int (*write_header)(struct AVFormatContext *); + /* XXX: change prototype for 64 bit pts */ int (*write_packet)(struct AVFormatContext *, int stream_index, unsigned char *buf, int size, int force_pts); @@ -142,6 +143,8 @@ typedef struct AVStream { int codec_info_state; int codec_info_nb_repeat_frames; int codec_info_nb_real_frames; + /* PTS generation when outputing stream */ + AVFrac pts; /* ffmpeg.c private use */ int stream_copy; /* if TRUE, just copy stream */ } AVStream; @@ -297,7 +300,8 @@ void av_set_pts_info(AVFormatContext *s, int pts_wrap_bits, /* media file output */ int av_write_header(AVFormatContext *s); -int av_write_packet(AVFormatContext *s, AVPacket *pkt, int force_pts); +int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf, + int size); int av_write_trailer(AVFormatContext *s); void dump_format(AVFormatContext *ic, |