This is already checked by avcodec_decode_audio3()
---
 libavcodec/aacdec.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 37ccd18..ca69e77 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -2487,9 +2487,6 @@ static int latm_decode_frame(AVCodecContext *avctx, void 
*out, int *out_size,
     int                 muxlength, err;
     GetBitContext       gb;
 
-    if (avpkt->size == 0)
-        return 0;
-
     init_get_bits(&gb, avpkt->data, avpkt->size * 8);
 
     // check for LOAS sync word
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to