mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 23:17:41 +08:00
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:

committed by
Michael Niedermayer

parent
b7dd459863
commit
23637f98f4
@ -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);
|
||||
|
Reference in New Issue
Block a user