[FFmpeg-soc] [soc]: r2900 - mxf/mxfenc.c
Benoit Fouet
benoit.fouet at purplelabs.com
Wed Jul 30 09:12:29 CEST 2008
Hi,
spyfeng wrote:
> Author: spyfeng
> Date: Tue Jul 29 18:28:24 2008
> New Revision: 2900
>
> Log:
> remove utf8len() and use strlen() instead.
>
>
> Modified:
> mxf/mxfenc.c
>
> Modified: mxf/mxfenc.c
> ==============================================================================
> --- mxf/mxfenc.c (original)
> +++ mxf/mxfenc.c Tue Jul 29 18:28:24 2008
> @@ -450,9 +440,9 @@ static int mxf_write_identification(AVFo
>
> put_buffer(pb, klv->key, 16);
>
> - company_name_len = utf8len("FFmpeg") + 1;
> - product_name_len = utf8len("OP1a Muxer") + 1;
> - version_string_len = utf8len(LIBAVFORMAT_IDENT) + 1;
> + company_name_len = strlen("FFmpeg") + 1;
> + product_name_len = strlen("OP1a Muxer") + 1;
> + version_string_len = strlen(LIBAVFORMAT_IDENT) + 1;
>
why not using sizeof, instead of a function call ?
strlen("abcd") + 1 == sizeof("abcd")
--
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com
More information about the FFmpeg-soc
mailing list