I see, I've changed title_length to size_t, but left the warning as is to inform the user in case truncation needs to take place. On Saturday, March 9th, 2024 at 6:48 PM, Andreas Rheinhardt wrote: > 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-request@ffmpeg.org with subject "unsubscribe".