[FFmpeg-devel] [PATCH] copy language from input stream to output stream

Michael Niedermayer michaelni
Wed Jul 25 20:10:54 CEST 2007


Hi

On Wed, Jul 25, 2007 at 05:47:22PM +0200, Aurelien Jacobs wrote:
> Hi,
> 
> Attached patch allows to copy language information from input stream to output.
> Ok to apply ?
> 
> Aurel

> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c	(r??vision 9786)
> +++ ffmpeg.c	(copie de travail)
> @@ -1506,6 +1506,9 @@
>          codec = ost->st->codec;
>          icodec = ist->st->codec;
>  
> +        if (!ost->st->language[0])
> +            strcpy(ost->st->language, ist->st->language);

please use strlcpy

yes i know the input should be null terminated but if its not then strcpy
would be bad here

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070725/4188756f/attachment.pgp>



More information about the ffmpeg-devel mailing list