avcodec/flacenc: Remove always-true check
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
1c7f252783
commit
2606c48391
@ -1407,12 +1407,11 @@ static int flac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
|
|
||||||
static av_cold int flac_encode_close(AVCodecContext *avctx)
|
static av_cold int flac_encode_close(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
if (avctx->priv_data) {
|
FlacEncodeContext *s = avctx->priv_data;
|
||||||
FlacEncodeContext *s = avctx->priv_data;
|
|
||||||
av_freep(&s->md5ctx);
|
av_freep(&s->md5ctx);
|
||||||
av_freep(&s->md5_buffer);
|
av_freep(&s->md5_buffer);
|
||||||
ff_lpc_end(&s->lpc_ctx);
|
ff_lpc_end(&s->lpc_ctx);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user