aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-03-25 20:21:37 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-03-27 23:01:44 +0200
commit49a0b3f6bc963583a490c3397f2055365b4d821e (patch)
tree7222708b4d5baef102001de5b6096125244e5237 /doc
parent95e33ea5659980b2915202882e9e82f912addc3f (diff)
downloadffmpeg-49a0b3f6bc963583a490c3397f2055365b4d821e.tar.gz
doc/examples/hw_decode: Remove useless NULL check
Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/hw_decode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c
index 14fe08b374..74a0ca32db 100644
--- a/doc/examples/hw_decode.c
+++ b/doc/examples/hw_decode.c
@@ -138,8 +138,7 @@ static int decode_write(AVCodecContext *avctx, AVPacket *packet)
fail:
av_frame_free(&frame);
av_frame_free(&sw_frame);
- if (buffer)
- av_freep(&buffer);
+ av_freep(&buffer);
if (ret < 0)
return ret;
}