Commit 49a0b3f6 authored by Michael Niedermayer's avatar Michael Niedermayer

doc/examples/hw_decode: Remove useless NULL check

Reviewed-by: 's avatarJun Zhao <mypopydev@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 95e33ea5
......@@ -138,7 +138,6 @@ static int decode_write(AVCodecContext *avctx, AVPacket *packet)
fail:
av_frame_free(&frame);
av_frame_free(&sw_frame);
if (buffer)
av_freep(&buffer);
if (ret < 0)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment