mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 00:05:03 -05:00
Small clarification in transcode_cleanup()
This commit is contained in:
parent
21e564e493
commit
887d1bf5ca
@ -501,8 +501,11 @@ transcode_cleanup(struct transcode_ctx *ctx)
|
||||
close(ctx->fd);
|
||||
free(ctx->rawbuffer);
|
||||
}
|
||||
if (ctx->apacket.data)
|
||||
av_free_packet(&ctx->apacket);
|
||||
else
|
||||
{
|
||||
if (ctx->apacket.data)
|
||||
av_free_packet(&ctx->apacket);
|
||||
}
|
||||
|
||||
avcodec_close(ctx->acodec);
|
||||
av_close_input_file(ctx->fmtctx);
|
||||
|
Loading…
Reference in New Issue
Block a user