Mercurial > libavcodec.hg
comparison ffv1.c @ 9468:71608a4f9eb7 libavcodec
Remove 2 unneeded variables from common_init() found by CSA.
author | michael |
---|---|
date | Fri, 17 Apr 2009 14:59:04 +0000 |
parents | 0dce4fe6e6f3 |
children | 3045aef3405c |
comparison
equal
deleted
inserted
replaced
9467:0d6c8c99382e | 9468:71608a4f9eb7 |
---|---|
528 } | 528 } |
529 #endif /* CONFIG_FFV1_ENCODER */ | 529 #endif /* CONFIG_FFV1_ENCODER */ |
530 | 530 |
531 static av_cold int common_init(AVCodecContext *avctx){ | 531 static av_cold int common_init(AVCodecContext *avctx){ |
532 FFV1Context *s = avctx->priv_data; | 532 FFV1Context *s = avctx->priv_data; |
533 int width, height; | |
534 | 533 |
535 s->avctx= avctx; | 534 s->avctx= avctx; |
536 s->flags= avctx->flags; | 535 s->flags= avctx->flags; |
537 | 536 |
538 dsputil_init(&s->dsp, avctx); | 537 dsputil_init(&s->dsp, avctx); |
539 | 538 |
540 width= s->width= avctx->width; | 539 s->width = avctx->width; |
541 height= s->height= avctx->height; | 540 s->height= avctx->height; |
542 | 541 |
543 assert(width && height); | 542 assert(s->width && s->height); |
544 | 543 |
545 return 0; | 544 return 0; |
546 } | 545 } |
547 | 546 |
548 #if CONFIG_FFV1_ENCODER | 547 #if CONFIG_FFV1_ENCODER |