[FFmpeg-cvslog] flashsv2enc: remove useless if()

Michael Niedermayer git at videolan.org
Fri Apr 29 02:57:04 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 29 02:40:22 2011 +0200| [f6a5edb64c004b45ae063e85652e3213731b42b6] | committer: Michael Niedermayer

flashsv2enc: remove useless if()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f6a5edb64c004b45ae063e85652e3213731b42b6
---

 libavcodec/flashsv2enc.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c
index 34d2459..44c9bc6 100644
--- a/libavcodec/flashsv2enc.c
+++ b/libavcodec/flashsv2enc.c
@@ -123,20 +123,13 @@ typedef struct FlashSV2Context {
 
 static av_cold void cleanup(FlashSV2Context * s)
 {
-    if (s->encbuffer)
         av_free(s->encbuffer);
-    if (s->keybuffer)
         av_free(s->keybuffer);
-    if (s->databuffer)
         av_free(s->databuffer);
-    if (s->current_frame)
         av_free(s->current_frame);
-    if (s->key_frame)
         av_free(s->key_frame);
 
-    if (s->frame_blocks)
         av_free(s->frame_blocks);
-    if (s->key_blocks)
         av_free(s->key_blocks);
 }
 



More information about the ffmpeg-cvslog mailing list