[FFmpeg-cvslog] r17554 - in trunk/libavformat: avformat.h avienc.c matroskaenc.c movenc.c nutenc.c
michael
subversion
Tue Feb 24 16:04:22 CET 2009
Author: michael
Date: Tue Feb 24 16:04:18 2009
New Revision: 17554
Log:
Add AVFMT_VARIABLE_FPS to specify which muxers dont need duplicated frames.
Modified:
trunk/libavformat/avformat.h
trunk/libavformat/avienc.c
trunk/libavformat/matroskaenc.c
trunk/libavformat/movenc.c
trunk/libavformat/nutenc.c
Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h Tue Feb 24 15:53:46 2009 (r17553)
+++ trunk/libavformat/avformat.h Tue Feb 24 16:04:18 2009 (r17554)
@@ -265,6 +265,7 @@ typedef struct AVFormatParameters {
#define AVFMT_NOTIMESTAMPS 0x0080 /**< Format does not need / have any timestamps. */
#define AVFMT_GENERIC_INDEX 0x0100 /**< Use generic index building code. */
#define AVFMT_TS_DISCONT 0x0200 /**< Format allows timestamp discontinuities. */
+#define AVFMT_VARIABLE_FPS 0x0400 /**< Format allows variable fps. */
typedef struct AVOutputFormat {
const char *name;
Modified: trunk/libavformat/avienc.c
==============================================================================
--- trunk/libavformat/avienc.c Tue Feb 24 15:53:46 2009 (r17553)
+++ trunk/libavformat/avienc.c Tue Feb 24 16:04:18 2009 (r17554)
@@ -606,4 +606,5 @@ AVOutputFormat avi_muxer = {
avi_write_packet,
avi_write_trailer,
.codec_tag= (const AVCodecTag* const []){codec_bmp_tags, codec_wav_tags, 0},
+ .flags= AVFMT_VARIABLE_FPS,
};
Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c Tue Feb 24 15:53:46 2009 (r17553)
+++ trunk/libavformat/matroskaenc.c Tue Feb 24 16:04:18 2009 (r17554)
@@ -909,7 +909,7 @@ AVOutputFormat matroska_muxer = {
mkv_write_header,
mkv_write_packet,
mkv_write_trailer,
- .flags = AVFMT_GLOBALHEADER,
+ .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag = (const AVCodecTag* const []){codec_bmp_tags, codec_wav_tags, 0},
.subtitle_codec = CODEC_ID_TEXT,
};
Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c Tue Feb 24 15:53:46 2009 (r17553)
+++ trunk/libavformat/movenc.c Tue Feb 24 16:04:18 2009 (r17554)
@@ -1841,7 +1841,7 @@ AVOutputFormat mov_muxer = {
mov_write_header,
mov_write_packet,
mov_write_trailer,
- .flags = AVFMT_GLOBALHEADER,
+ .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag = (const AVCodecTag* const []){codec_movvideo_tags, codec_movaudio_tags, 0},
};
#endif
@@ -1873,7 +1873,7 @@ AVOutputFormat mp4_muxer = {
mov_write_header,
mov_write_packet,
mov_write_trailer,
- .flags = AVFMT_GLOBALHEADER,
+ .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag = (const AVCodecTag* const []){ff_mp4_obj_type, 0},
};
#endif
Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c Tue Feb 24 15:53:46 2009 (r17553)
+++ trunk/libavformat/nutenc.c Tue Feb 24 16:04:18 2009 (r17554)
@@ -820,6 +820,6 @@ AVOutputFormat nut_muxer = {
write_header,
write_packet,
write_trailer,
- .flags = AVFMT_GLOBALHEADER,
+ .flags = AVFMT_GLOBALHEADER | AVFMT_VARIABLE_FPS,
.codec_tag= (const AVCodecTag* const []){codec_bmp_tags, codec_wav_tags, ff_nut_subtitle_tags, 0},
};
More information about the ffmpeg-cvslog
mailing list