[FFmpeg-devel] [PATCH] ffprobe: prefer lower cased section names over upper cased names

Clément Bœsch ubitux at gmail.com
Sun Oct 9 16:45:12 CEST 2011


On Sun, Oct 09, 2011 at 04:34:11PM +0200, Stefano Sabatini wrote:
[...]
> +/* lame uppercasing routine, assumes the string is lower case ASCII
> + * and terminated by 0 */
> +static inline char *upcase_string(char *dst, size_t dst_size, const char *src)
> +{
> +    int i;
> +    for (i = 0; *src && i < dst_size-1; src++, i++)
> +        dst[i] = *src-32;

src[i]?

looks good otherwise.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111009/fab6af21/attachment.asc>


More information about the ffmpeg-devel mailing list