mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
oggenc: favor av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
17d51938d2
commit
3b6c0ba382
@ -516,11 +516,11 @@ static int ogg_write_trailer(AVFormatContext *s)
|
||||
OGGStreamContext *oggstream = st->priv_data;
|
||||
if (st->codec->codec_id == CODEC_ID_FLAC ||
|
||||
st->codec->codec_id == CODEC_ID_SPEEX) {
|
||||
av_free(oggstream->header[0]);
|
||||
av_free(oggstream->header[1]);
|
||||
av_freep(&oggstream->header[0]);
|
||||
av_freep(&oggstream->header[1]);
|
||||
}
|
||||
else
|
||||
av_free(oggstream->header[1]);
|
||||
av_freep(&oggstream->header[1]);
|
||||
av_freep(&st->priv_data);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user