[FFmpeg-cvslog] dv: Do not redundantly initialize struct members to zero.

Diego Biurrun git at videolan.org
Tue Mar 6 06:15:55 CET 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Mar  5 13:57:14 2012 +0100| [0a41f47dc17b49acaff6fe469a6ab358986cc449] | committer: Diego Biurrun

dv: Do not redundantly initialize struct members to zero.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a41f47dc17b49acaff6fe469a6ab358986cc449
---

 libavformat/dv.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 873cc3f..14be5fb 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -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;



More information about the ffmpeg-cvslog mailing list