[FFmpeg-devel] [PATCH] fix printf length modifier in mpeg12.c
Diego Biurrun
diego
Thu Mar 13 19:38:02 CET 2008
I noticed a warning in mpeg12.c on OS X that hinted at a wrong printf
length modifier. Indeed line 2310 looks suspcious:
av_log(avctx, AV_LOG_DEBUG, "%3X at %hd left %d\n", start_code, buf_ptr-buf, input_size);
Both buf_ptr and buf have type const uint8_t*, so the correct length
modifier should be either 'h' or none.
Diego
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printf_modifier.diff
Type: text/x-diff
Size: 554 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080313/7e561333/attachment.diff>
More information about the ffmpeg-devel
mailing list