Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv@google.com>2013-09-12 21:24:18 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-09-16 23:42:41 +0400
commit23637f98f4a90a7f0413db57ddb01a4d1a82ead7 (patch)
tree48020475079225f6c1d65303299ed4430ad46f9f /libavformat/oggparseopus.c
parentb7dd4598630fb1f890ae060f21a9ec92a103f22d (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.c1
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);