From 350ed1829268d343b791208c8fd1cddd44d52a8e Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Sat, 18 Oct 2014 16:58:42 +0100 Subject: rtpdec_hevc: drop unnecessary check len is always >=1 in that case. Bug-Id: CID 1238784 --- libavformat/rtpdec_hevc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libavformat/rtpdec_hevc.c') diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c index 49789b04a7..3ed7cac8f6 100644 --- a/libavformat/rtpdec_hevc.c +++ b/libavformat/rtpdec_hevc.c @@ -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 -- cgit v1.2.3