comparison avformat.h @ 468:60f897e8dd2d libavformat

pass AVPacket into av_write_frame() fixes the random dts/pts during encoding asf preroll fix no more initial zero frames for b frame encoding mpeg-es dts during demuxing fixed .ffm timestamp scale fixed, ffm is still broken though
author michael
date Sat, 29 May 2004 02:06:32 +0000
parents 09e46bfc859c
children 334e08488ad1
comparison
equal deleted inserted replaced
467:40069a91d1a0 468:60f897e8dd2d
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #define LIBAVFORMAT_BUILD 4614 8 #define LIBAVFORMAT_BUILD 4615
9 9
10 #define LIBAVFORMAT_VERSION_INT FFMPEG_VERSION_INT 10 #define LIBAVFORMAT_VERSION_INT FFMPEG_VERSION_INT
11 #define LIBAVFORMAT_VERSION FFMPEG_VERSION 11 #define LIBAVFORMAT_VERSION FFMPEG_VERSION
12 #define LIBAVFORMAT_IDENT "FFmpeg" FFMPEG_VERSION "b" AV_STRINGIFY(LIBAVFORMAT_BUILD) 12 #define LIBAVFORMAT_IDENT "FFmpeg" FFMPEG_VERSION "b" AV_STRINGIFY(LIBAVFORMAT_BUILD)
13 13
129 int priv_data_size; 129 int priv_data_size;
130 /* output support */ 130 /* output support */
131 enum CodecID audio_codec; /* default audio codec */ 131 enum CodecID audio_codec; /* default audio codec */
132 enum CodecID video_codec; /* default video codec */ 132 enum CodecID video_codec; /* default video codec */
133 int (*write_header)(struct AVFormatContext *); 133 int (*write_header)(struct AVFormatContext *);
134 int (*write_packet)(struct AVFormatContext *, 134 int (*write_packet)(struct AVFormatContext *, AVPacket *pkt);
135 int stream_index,
136 const uint8_t *buf, int size, int64_t pts);
137 int (*write_trailer)(struct AVFormatContext *); 135 int (*write_trailer)(struct AVFormatContext *);
138 /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */ 136 /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */
139 int flags; 137 int flags;
140 /* currently only used to set pixel format if not YUV420P */ 138 /* currently only used to set pixel format if not YUV420P */
141 int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *); 139 int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *);
556 int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts); 554 int av_seek_frame_binary(AVFormatContext *s, int stream_index, int64_t target_ts);
557 555
558 /* media file output */ 556 /* media file output */
559 int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap); 557 int av_set_parameters(AVFormatContext *s, AVFormatParameters *ap);
560 int av_write_header(AVFormatContext *s); 558 int av_write_header(AVFormatContext *s);
561 int av_write_frame(AVFormatContext *s, int stream_index, const uint8_t *buf, 559 int av_write_frame(AVFormatContext *s, AVPacket *pkt);
562 int size); 560
563 int av_write_trailer(AVFormatContext *s); 561 int av_write_trailer(AVFormatContext *s);
564 562
565 void dump_format(AVFormatContext *ic, 563 void dump_format(AVFormatContext *ic,
566 int index, 564 int index,
567 const char *url, 565 const char *url,