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);
|
av_free(pids);
|
||||||
for(i = 0;i < s->nb_streams; i++) {
|
for(i = 0;i < s->nb_streams; i++) {
|
||||||
st = s->streams[i];
|
st = s->streams[i];
|
||||||
av_free(st->priv_data);
|
av_freep(&st->priv_data);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user