int stream_index;
int flags;
#define PKT_FLAG_KEY 0x0001
+#define PKT_FLAG_DROPPED_FRAME 0x0002
} AVPacket;
int av_new_packet(AVPacket *pkt, int size);
int channels;
int width;
int height;
- int pix_fmt;
+ enum PixelFormat pix_fmt;
} AVFormatParameters;
typedef struct AVFormat {
int (*write_header)(struct AVFormatContext *);
int (*write_packet)(struct AVFormatContext *,
int stream_index,
- unsigned char *buf, int size);
+ unsigned char *buf, int size, int force_pts);
int (*write_trailer)(struct AVFormatContext *);
/* optional input support */
/* avienc.c */
extern AVFormat avi_format;
+/* mov.c */
+extern AVFormat mov_format;
+extern AVFormat mp4_format;
+
/* jpegenc.c */
extern AVFormat mpjpeg_format;
extern AVFormat jpeg_format;
/* swfenc.c */
extern AVFormat swf_format;
+/* gif.c */
+extern AVFormat gif_format;
+/* au.c */
+extern AVFormat au_format;
+
/* wav.c */
extern AVFormat wav_format;
int av_read_packet(AVFormatContext *s, AVPacket *pkt);
void av_close_input_file(AVFormatContext *s);
-int av_write_packet(AVFormatContext *s, AVPacket *pkt);
+int av_write_packet(AVFormatContext *s, AVPacket *pkt, int force_pts);
void dump_format(AVFormatContext *ic,
int index,