[FFmpeg-cvslog] r18560 - trunk/libavcodec/ffv1.c

michael subversion
Fri Apr 17 16:59:05 CEST 2009


Author: michael
Date: Fri Apr 17 16:59:04 2009
New Revision: 18560

Log:
Remove 2 unneeded variables from common_init() found by CSA.

Modified:
   trunk/libavcodec/ffv1.c

Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c	Fri Apr 17 16:51:00 2009	(r18559)
+++ trunk/libavcodec/ffv1.c	Fri Apr 17 16:59:04 2009	(r18560)
@@ -530,17 +530,16 @@ static void write_header(FFV1Context *f)
 
 static av_cold int common_init(AVCodecContext *avctx){
     FFV1Context *s = avctx->priv_data;
-    int width, height;
 
     s->avctx= avctx;
     s->flags= avctx->flags;
 
     dsputil_init(&s->dsp, avctx);
 
-    width= s->width= avctx->width;
-    height= s->height= avctx->height;
+    s->width = avctx->width;
+    s->height= avctx->height;
 
-    assert(width && height);
+    assert(s->width && s->height);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list