mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
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>
This commit is contained in:
parent
a7ea5e3d35
commit
ed87375dd5
@ -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…
Reference in New Issue
Block a user