From cb65b32c97b06fc611b53c1ab77a2edbaadee84f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 16 Oct 2012 20:27:16 +0200 Subject: [PATCH] mp3enc: remove unneeded null ptr check Fixes: CID733746 Signed-off-by: Michael Niedermayer --- libavformat/mp3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c index 425488ff03..044eb29620 100644 --- a/libavformat/mp3enc.c +++ b/libavformat/mp3enc.c @@ -259,7 +259,7 @@ static int mp3_write_audio_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; - if (pkt && pkt->data && pkt->size >= 4) { + if (pkt->data && pkt->size >= 4) { MPADecodeHeader c; int av_unused base;