aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-04-17 14:59:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-04-17 14:59:04 +0000
commit6081c30b81a1d912f12cfa3fa5b8154557971c79 (patch)
tree08fcbb4a7154bc85198e812295d58b9bd54746fd /libavcodec
parentd0d62cc955a1bb1354fc22c8f0d33fca2a498d97 (diff)
downloadffmpeg-6081c30b81a1d912f12cfa3fa5b8154557971c79.tar.gz
Remove 2 unneeded variables from common_init() found by CSA.
Originally committed as revision 18560 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ffv1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index c6767493af..86f2897434 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -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;
}