dv: Do not redundantly initialize struct members to zero.
authorDiego Biurrun <diego@biurrun.de>
Mon, 5 Mar 2012 12:57:14 +0000 (13:57 +0100)
committerDiego Biurrun <diego@biurrun.de>
Mon, 5 Mar 2012 16:02:59 +0000 (17:02 +0100)
libavformat/dv.c

index 873cc3f..14be5fb 100644 (file)
@@ -303,13 +303,7 @@ DVDemuxContext* avpriv_dv_init_demux(AVFormatContext *s)
         return NULL;
     }
 
-    c->sys  = NULL;
-    c->fctx = s;
-    memset(c->ast, 0, sizeof(c->ast));
-    c->ach    = 0;
-    c->frames = 0;
-    c->abytes = 0;
-
+    c->fctx                   = s;
     c->vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
     c->vst->codec->codec_id   = CODEC_ID_DVVIDEO;
     c->vst->codec->bit_rate   = 25000000;