Commit 556c4e38 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Michael Niedermayer

avformat/dvenc: Don't zero unnecessarily

The muxing context has already been zeroed when it was allocated, hence
it is unnecessary to do it again.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f1dbfcdf
......@@ -305,9 +305,6 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
if (s->nb_streams > 5)
return NULL;
c->n_ast = 0;
c->ast[0] = c->ast[1] = c->ast[2] = c->ast[3] = NULL;
/* We have to sort out where audio and where video stream is */
for (i=0; i<s->nb_streams; i++) {
switch (s->streams[i]->codecpar->codec_type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment