From 12251f997bbc0abb93be39c51021e6d404ca385f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 24 Feb 2015 13:30:12 +0200 Subject: rtpdec: Remove unnecessary checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The free function of a depacketizer won't be called if data is NULL. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_h263_rfc2190.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/rtpdec_h263_rfc2190.c') diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c index a7e8287f11..ae6e38ecfe 100644 --- a/libavformat/rtpdec_h263_rfc2190.c +++ b/libavformat/rtpdec_h263_rfc2190.c @@ -41,8 +41,6 @@ struct PayloadContext { static void h263_free_context(PayloadContext *data) { - if (!data) - return; if (data->buf) { uint8_t *p; avio_close_dyn_buf(data->buf, &p); -- cgit v1.2.3