diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2013-09-12 21:24:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 23:42:41 +0400 |
commit | 23637f98f4a90a7f0413db57ddb01a4d1a82ead7 (patch) | |
tree | 48020475079225f6c1d65303299ed4430ad46f9f /libavformat/oggparseopus.c | |
parent | b7dd4598630fb1f890ae060f21a9ec92a103f22d (diff) |
lavf/ogg: Support for end trimming Opus
Adding support for end trimming Opus embedded in Ogg container.
Signed-Off By: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggparseopus.c')
-rw-r--r-- | libavformat/oggparseopus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index 0e8f1ca5bb..8e538609c3 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -118,6 +118,7 @@ static int opus_packet(AVFormatContext *avf, int idx) skip = FFMIN(skip, os->pduration); if (skip > 0) { os->pduration = skip < os->pduration ? os->pduration - skip : 1; + os->end_trimming = skip; av_log(avf, AV_LOG_WARNING, "Last packet must be truncated to %d (unimplemented).\n", os->pduration); |