Mercurial > libavformat.hg
changeset 715:e214703e4b76 libavformat
30_clean_up_global_header_flag.patch by (Calcium | calcium nurs or jp)
author | michael |
---|---|
date | Wed, 23 Mar 2005 12:52:24 +0000 |
parents | 3086560254cd |
children | 55081ada3aad |
files | avformat.h movenc.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avformat.h Wed Mar 23 12:42:12 2005 +0000 +++ b/avformat.h Wed Mar 23 12:52:24 2005 +0000 @@ -124,6 +124,7 @@ #define AVFMT_SHOW_IDS 0x0008 /* show format stream IDs numbers */ #define AVFMT_RAWPICTURE 0x0020 /* format wants AVPicture structure for raw picture data */ +#define AVFMT_GLOBALHEADER 0x0040 /* format wants global header */ typedef struct AVOutputFormat { const char *name; @@ -138,7 +139,7 @@ int (*write_header)(struct AVFormatContext *); int (*write_packet)(struct AVFormatContext *, AVPacket *pkt); int (*write_trailer)(struct AVFormatContext *); - /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER */ + /* can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_GLOBALHEADER */ int flags; /* currently only used to set pixel format if not YUV420P */ int (*set_parameters)(struct AVFormatContext *, AVFormatParameters *);
--- a/movenc.c Wed Mar 23 12:42:12 2005 +0000 +++ b/movenc.c Wed Mar 23 12:52:24 2005 +0000 @@ -1497,6 +1497,7 @@ mov_write_header, mov_write_packet, mov_write_trailer, + .flags = AVFMT_GLOBALHEADER, }; static AVOutputFormat _3gp_oformat = { @@ -1510,6 +1511,7 @@ mov_write_header, mov_write_packet, mov_write_trailer, + .flags = AVFMT_GLOBALHEADER, }; static AVOutputFormat mp4_oformat = { @@ -1523,6 +1525,7 @@ mov_write_header, mov_write_packet, mov_write_trailer, + .flags = AVFMT_GLOBALHEADER, }; static AVOutputFormat psp_oformat = { @@ -1536,6 +1539,7 @@ mov_write_header, mov_write_packet, mov_write_trailer, + .flags = AVFMT_GLOBALHEADER, }; static AVOutputFormat _3g2_oformat = { @@ -1549,6 +1553,7 @@ mov_write_header, mov_write_packet, mov_write_trailer, + .flags = AVFMT_GLOBALHEADER, }; int movenc_init(void)