[FFmpeg-cvslog] mp3enc: remove unneeded null ptr check

Michael Niedermayer git at videolan.org
Wed Oct 17 00:11:13 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 16 20:27:16 2012 +0200| [cb65b32c97b06fc611b53c1ab77a2edbaadee84f] | committer: Michael Niedermayer

mp3enc: remove unneeded null ptr check

Fixes: CID733746
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb65b32c97b06fc611b53c1ab77a2edbaadee84f
---

 libavformat/mp3enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 425488f..044eb29 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;
 



More information about the ffmpeg-cvslog mailing list