rtpdec_hevc: drop unnecessary check

len is always >=1 in that case.

Bug-Id: CID 1238784
pull/87/merge
Vittorio Giovara 10 years ago
parent 322b571d55
commit 350ed18292
  1. 2
      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

Loading…
Cancel
Save