diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-18 16:58:42 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-20 10:44:42 +0100 |
commit | 350ed1829268d343b791208c8fd1cddd44d52a8e (patch) | |
tree | 0bd02710b066ff19ef456c78391647ebc4f9ea4d | |
parent | 322b571d5591978efd6f6fee12181ac8900079fe (diff) | |
download | ffmpeg-350ed1829268d343b791208c8fd1cddd44d52a8e.tar.gz |
rtpdec_hevc: drop unnecessary check
len is always >=1 in that case.
Bug-Id: CID 1238784
-rw-r--r-- | libavformat/rtpdec_hevc.c | 2 |
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 |