Commit 350ed182 authored by Vittorio Giovara's avatar Vittorio Giovara

rtpdec_hevc: drop unnecessary check

len is always >=1 in that case.

Bug-Id: CID 1238784
parent 322b571d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment