changeset 9553:4cab394c16ea libavcodec

Remove useless assignment during initialization for some decoders
author kostya
date Fri, 24 Apr 2009 14:09:24 +0000
parents 4fd9ac9978e5
children 6900e4f82110
files aasc.c fraps.c kmvc.c qpeg.c smacker.c targa.c tiff.c tscc.c vmdav.c vmnc.c zmbv.c zmbvenc.c
diffstat 12 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/aasc.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/aasc.c	Fri Apr 24 14:09:24 2009 +0000
@@ -52,7 +52,6 @@
     s->avctx = avctx;
 
     avctx->pix_fmt = PIX_FMT_BGR24;
-    s->frame.data[0] = NULL;
 
     return 0;
 }
--- a/fraps.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/fraps.c	Fri Apr 24 14:09:24 2009 +0000
@@ -63,7 +63,6 @@
     avctx->pix_fmt= PIX_FMT_NONE; /* set in decode_frame */
 
     s->avctx = avctx;
-    s->frame.data[0] = NULL;
     s->tmpbuf = NULL;
 
     dsputil_init(&s->dsp, avctx);
--- a/kmvc.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/kmvc.c	Fri Apr 24 14:09:24 2009 +0000
@@ -346,8 +346,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
-
     if (avctx->width > 320 || avctx->height > 200) {
         av_log(avctx, AV_LOG_ERROR, "KMVC supports frames <= 320x200\n");
         return -1;
--- a/qpeg.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/qpeg.c	Fri Apr 24 14:09:24 2009 +0000
@@ -291,7 +291,6 @@
 
     a->avctx = avctx;
     avctx->pix_fmt= PIX_FMT_PAL8;
-    a->pic.data[0] = NULL;
     a->refdata = av_malloc(avctx->width * avctx->height);
 
     return 0;
--- a/smacker.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/smacker.c	Fri Apr 24 14:09:24 2009 +0000
@@ -514,8 +514,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
-
     if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
         return 1;
     }
--- a/targa.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/targa.c	Fri Apr 24 14:09:24 2009 +0000
@@ -229,7 +229,6 @@
 
     avcodec_get_frame_defaults((AVFrame*)&s->picture);
     avctx->coded_frame= (AVFrame*)&s->picture;
-    s->picture.data[0] = NULL;
 
     return 0;
 }
--- a/tiff.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/tiff.c	Fri Apr 24 14:09:24 2009 +0000
@@ -512,7 +512,6 @@
     s->avctx = avctx;
     avcodec_get_frame_defaults((AVFrame*)&s->picture);
     avctx->coded_frame= (AVFrame*)&s->picture;
-    s->picture.data[0] = NULL;
     ff_lzw_decode_open(&s->lzw);
     ff_ccitt_unpack_init();
 
--- a/tscc.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/tscc.c	Fri Apr 24 14:09:24 2009 +0000
@@ -139,7 +139,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
     c->height = avctx->height;
 
     if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
--- a/vmdav.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/vmdav.c	Fri Apr 24 14:09:24 2009 +0000
@@ -359,8 +359,6 @@
         palette32[i] = (r << 16) | (g << 8) | (b);
     }
 
-    s->frame.data[0] = s->prev_frame.data[0] = NULL;
-
     return 0;
 }
 
--- a/vmnc.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/vmnc.c	Fri Apr 24 14:09:24 2009 +0000
@@ -465,7 +465,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
     c->width = avctx->width;
     c->height = avctx->height;
 
--- a/zmbv.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/zmbv.c	Fri Apr 24 14:09:24 2009 +0000
@@ -599,7 +599,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
     c->width = avctx->width;
     c->height = avctx->height;
 
--- a/zmbvenc.c	Fri Apr 24 13:38:28 2009 +0000
+++ b/zmbvenc.c	Fri Apr 24 14:09:24 2009 +0000
@@ -251,7 +251,6 @@
 
     c->avctx = avctx;
 
-    c->pic.data[0] = NULL;
     c->curfrm = 0;
     c->keyint = avctx->keyint_min;
     c->range = 8;