[FFmpeg-cvslog] doc/examples/hw_decode: Remove useless NULL check
Michael Niedermayer
git at videolan.org
Wed Mar 28 00:16:45 EEST 2018
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Mar 25 20:21:37 2018 +0200| [49a0b3f6bc963583a490c3397f2055365b4d821e] | committer: Michael Niedermayer
doc/examples/hw_decode: Remove useless NULL check
Reviewed-by: Jun Zhao <mypopydev at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=49a0b3f6bc963583a490c3397f2055365b4d821e
---
doc/examples/hw_decode.c | 3 +--
1 file changed, 1 insertion(+), 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;
}
More information about the ffmpeg-cvslog
mailing list