Small clarification in transcode_cleanup()

This commit is contained in:
Julien BLACHE 2010-03-28 16:14:36 +02:00
parent 21e564e493
commit 887d1bf5ca

View File

@ -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);