asivery via ffmpeg-devel:
> +        const char *title_contents = title_entry->value;
> +        title_length = strlen(title_contents);
> +        if (title_length > 256) {
> +            av_log(s, AV_LOG_WARNING, "Title too long, truncated to 256 
> bytes.\n");
> +            title_length = 256;
> +        }

I actually meant that you should use size_t for title_length (so that
the output of strlen() is never truncated) instead of adding a warning
that will likely never be triggered in practice.

- Andreas

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to