diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-03-25 20:21:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-03-27 23:01:44 +0200 |
commit | 49a0b3f6bc963583a490c3397f2055365b4d821e (patch) | |
tree | 7222708b4d5baef102001de5b6096125244e5237 | |
parent | 95e33ea5659980b2915202882e9e82f912addc3f (diff) | |
download | ffmpeg-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>
-rw-r--r-- | doc/examples/hw_decode.c | 3 |
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; } |