diff options
author | Martin Storsjö <martin@martin.st> | 2014-06-06 13:59:14 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-06-26 12:58:28 +0200 |
commit | 16f7cbef5610a878317596134607d2a89da66ecf (patch) | |
tree | 0b9fbc9ce7ea733a82eb77518af363de316dbb67 | |
parent | 4ec1acc6e4f4d0bd28617bbb30ebfb779ce7df92 (diff) | |
download | ffmpeg-16f7cbef5610a878317596134607d2a89da66ecf.tar.gz |
oggenc: Set the right AVOption size for the pref_duration option
On big endian machines, the default value set via the faulty
AVOption ended up as 2^32 times too big.
This fixes the fate-lavf-ogg test which currently is broken on
big endian machines, broken since 3831362. Since that commit,
a final zero-sized packet is written to the ogg muxer in that test,
which caused different flushing behaviour on little and big endian
depending on whether the pref_duration option was handled as it
should or not.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 103243ca649cc305129ed0352bf4d97e5ddf4d80)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/oggenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index fd102c86ad..a03ac153c7 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -80,7 +80,7 @@ static const AVOption options[] = { { "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", - OFFSET(pref_duration), AV_OPT_TYPE_INT, { .i64 = 1000000 }, 0, INT64_MAX, PARAM }, + OFFSET(pref_duration), AV_OPT_TYPE_INT64, { .i64 = 1000000 }, 0, INT64_MAX, PARAM }, { NULL }, }; |