[FFmpeg-devel] [PATCH 1/2] doc/examples/hw_decode: Remove useless NULL check
Michael Niedermayer
michael at niedermayer.cc
Sun Mar 25 21:21:37 EEST 2018
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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;
}
--
2.16.2
More information about the ffmpeg-devel
mailing list