[Ffmpeg-cvslog] r6196 - in trunk: doc/ffmpeg-doc.texi libavformat/utils.c
gpoirier
subversion
Fri Sep 8 14:28:28 CEST 2006
Author: gpoirier
Date: Fri Sep 8 14:28:28 2006
New Revision: 6196
Modified:
trunk/doc/ffmpeg-doc.texi
trunk/libavformat/utils.c
Log:
enable setting the year and track number using AVOption
Patch by Takis
Original thread:
Date: Sep 6, 2006 5:43 PM
Subject: [Ffmpeg-devel] [PATCH] Enhance genre, year and track tag
support
Modified: trunk/doc/ffmpeg-doc.texi
==============================================================================
--- trunk/doc/ffmpeg-doc.texi (original)
+++ trunk/doc/ffmpeg-doc.texi Fri Sep 8 14:28:28 2006
@@ -190,6 +190,12 @@
@item -comment string
Set the comment.
+ at item -track number
+Set the track.
+
+ at item -year number
+Set the year.
+
@item -target type
Specify target file type ("vcd", "svcd", "dvd", "dv", "pal-vcd",
"ntsc-svcd", ... ). All the format options (bitrate, codecs,
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Fri Sep 8 14:28:28 2006
@@ -469,6 +469,8 @@
{"fflags", NULL, OFFSET(flags), FF_OPT_TYPE_FLAGS, DEFAULT, INT_MIN, INT_MAX, D, "fflags"},
{"ignidx", "ignore index", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_IGNIDX, INT_MIN, INT_MAX, D, "fflags"},
{"genpts", "generate pts", 0, FF_OPT_TYPE_CONST, AVFMT_FLAG_GENPTS, INT_MIN, INT_MAX, D, "fflags"},
+{"track", " set the track number", OFFSET(track), FF_OPT_TYPE_INT, DEFAULT, 1, INT_MAX, E},
+{"year", "set the year", OFFSET(year), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, E},
{NULL},
};
More information about the ffmpeg-cvslog
mailing list