]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libmp3lame.c
Do not print a useless error number if mov header reading fails.
[ffmpeg] / libavcodec / libmp3lame.c
index fed82e271ead532897258ed202c57871ce5b751f..1ac79a2ed9dc3a9c714c7706da3f38780f6175f4 100644 (file)
@@ -94,7 +94,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
     s->avctx = avctx;
 
     /* initialize LAME and get defaults */
-    if ((s->gfp = lame_init()) == NULL)
+    if (!(s->gfp = lame_init()))
         return AVERROR(ENOMEM);