Browse Source

mpegtsenc: Clear st->priv_data when freeing it

If not cleared, the caller might try to free it.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.8
Martin Storsjö 14 years ago
parent
commit
ed87375dd5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegtsenc.c

+ 1
- 1
libavformat/mpegtsenc.c View File

@@ -588,7 +588,7 @@ static int mpegts_write_header(AVFormatContext *s)
av_free(pids);
for(i = 0;i < s->nb_streams; i++) {
st = s->streams[i];
av_free(st->priv_data);
av_freep(&st->priv_data);
}
return -1;
}


Loading…
Cancel
Save