OSDN Git Service

mp3enc: remove unneeded null ptr check
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Oct 2012 18:27:16 +0000 (20:27 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Oct 2012 18:27:16 +0000 (20:27 +0200)
Fixes: CID733746
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mp3enc.c

index 425488f..044eb29 100644 (file)
@@ -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;