rtpdec_hevc: drop unnecessary check
authorVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 18 Oct 2014 15:58:42 +0000 (16:58 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 20 Oct 2014 09:44:42 +0000 (10:44 +0100)
len is always >=1 in that case.

Bug-Id: CID 1238784

libavformat/rtpdec_hevc.c

index 49789b0..3ed7cac 100644 (file)
@@ -361,8 +361,6 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx
         buf += RTP_HEVC_PAYLOAD_HEADER_SIZE;
         len -= RTP_HEVC_PAYLOAD_HEADER_SIZE;
 
-        if (len < 1)
-            return AVERROR_INVALIDDATA;
         /*
              decode the FU header