summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2006-09-08 12:28:28 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-08 12:28:28 +0000
commitec1b10f4b9aa4f775d4c4286361e7de37c418797 (patch)
tree39a61d465637dec0788ca6ef1a1889204198dfdf /libavformat
parent57c244f6c7027865b9f619419e41fec65f48d03c (diff)
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 Originally committed as revision 6196 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cb793435fb..6348ac98df 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -469,6 +469,8 @@ static const AVOption options[]={
{"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},
};