lavc: remove a pointless check in decode_audio4()
authorAnton Khirnov <anton@khirnov.net>
Fri, 29 Nov 2013 19:19:27 +0000 (20:19 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 9 Dec 2013 07:44:24 +0000 (08:44 +0100)
av_frame_unref() works fine on unallocated frames.

libavcodec/utils.c

index d1a1510..e9d6734 100644 (file)
@@ -1478,7 +1478,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
                 frame->extended_buf    = NULL;
                 frame->nb_extended_buf = 0;
             }
-        } else if (frame->data[0])
+        } else
             av_frame_unref(frame);
     }