From 7cbf432db1faa8b2ef2dc18e06a87bf6be293718 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Wed, 27 Jun 2007 10:37:37 +0000 Subject: [PATCH] Mention unneeded casts and parentheses patch by Vitor: [vitor1001 gmail com] Originally committed as revision 9445 to svn://svn.ffmpeg.org/ffmpeg/trunk --- doc/ffmpeg-doc.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/ffmpeg-doc.texi b/doc/ffmpeg-doc.texi index 9fa7668ca..470a8b498 100644 --- a/doc/ffmpeg-doc.texi +++ b/doc/ffmpeg-doc.texi @@ -1539,6 +1539,9 @@ int myfunc(int my_parameter) fprintf and printf are forbidden in libavformat and libavcodec, please use av_log() instead. +Casts should be used only when necessary. Unneeded parentheses +should also be avoided if they don't make the code easier to understand. + @section Development Policy @enumerate -- 2.11.0