summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_hevc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-18 16:58:42 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-20 10:44:42 +0100
commit350ed1829268d343b791208c8fd1cddd44d52a8e (patch)
tree0bd02710b066ff19ef456c78391647ebc4f9ea4d /libavformat/rtpdec_hevc.c
parent322b571d5591978efd6f6fee12181ac8900079fe (diff)
rtpdec_hevc: drop unnecessary check
len is always >=1 in that case. Bug-Id: CID 1238784
Diffstat (limited to 'libavformat/rtpdec_hevc.c')
-rw-r--r--libavformat/rtpdec_hevc.c2
1 files changed, 0 insertions, 2 deletions
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