[FFmpeg-devel] [PATCH] remuxing .opus files to .webm codec->delay must be copied too

Michael Niedermayer michaelni at gmx.at
Fri Dec 20 01:32:09 CET 2013


On Thu, Dec 19, 2013 at 08:26:49PM +0530, Jan Gerber wrote:
> 

>  ffmpeg.c |    1 +
>  1 file changed, 1 insertion(+)
> e7baaf1628e82bd5e74b06cdd39f20686a1af6a2  0001-remuxing-.opus-files-to-.webm-codec-delay-must-be-co.patch
> diff --git a/ffmpeg.c b/ffmpeg.c
> index a8167ed..6a2ff98 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -2375,6 +2375,7 @@ static int transcode_init(void)
>                  codec->frame_size         = icodec->frame_size;
>                  codec->audio_service_type = icodec->audio_service_type;
>                  codec->block_align        = icodec->block_align;
> +                codec->delay              = icodec->delay;
>                  if((codec->block_align == 1 || codec->block_align == 1152 || codec->block_align == 576) && codec->codec_id == AV_CODEC_ID_MP3)
>                      codec->block_align= 0;
>                  if(codec->codec_id == AV_CODEC_ID_AC3)

applied

a bit off topic, but iam not sure the timestamps of opus in matroska
are correct or if the (de)muxers should maybe shift them by
codec->delay

thanks

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131220/49785b4e/attachment.asc>


More information about the ffmpeg-devel mailing list