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>
This commit is contained in:
Vignesh Venkatasubramanian
2013-09-12 10:24:18 -07:00
committed by Michael Niedermayer
parent b7dd459863
commit 23637f98f4
3 changed files with 15 additions and 0 deletions

View File

@ -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);