mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-16 09:08:04 -04: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);
|
close(ctx->fd);
|
||||||
free(ctx->rawbuffer);
|
free(ctx->rawbuffer);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (ctx->apacket.data)
|
if (ctx->apacket.data)
|
||||||
av_free_packet(&ctx->apacket);
|
av_free_packet(&ctx->apacket);
|
||||||
|
}
|
||||||
|
|
||||||
avcodec_close(ctx->acodec);
|
avcodec_close(ctx->acodec);
|
||||||
av_close_input_file(ctx->fmtctx);
|
av_close_input_file(ctx->fmtctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user