]> git.sesse.net Git - ffmpeg/commitdiff
avformat/oggenc: Simplify by using OFFSET and PARAM
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Feb 2015 13:35:15 +0000 (14:35 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Feb 2015 13:35:15 +0000 (14:35 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggenc.c

index 13f2cc7df89e2f86f0794203780ed3738a41b383..50af8bde179dae2badc6dec6dcab839d0cd08b6c 100644 (file)
@@ -81,7 +81,7 @@ static const AVOption options[] = {
     { "serial_offset", "serial number offset",
         OFFSET(serial_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, PARAM },
     { "oggpagesize", "Set preferred Ogg page size.",
-      offsetof(OGGContext, pref_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, MAX_PAGE_SIZE, AV_OPT_FLAG_ENCODING_PARAM},
+      OFFSET(pref_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, MAX_PAGE_SIZE, PARAM},
     { "pagesize", "preferred page size in bytes (deprecated)",
         OFFSET(pref_size), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, MAX_PAGE_SIZE, PARAM },
     { "page_duration", "preferred page duration, in microseconds",