ffmpeg | branch: master | Vittorio Giovara <[email protected]> | Sat 
Oct 18 16:58:42 2014 +0100| [350ed1829268d343b791208c8fd1cddd44d52a8e] | 
committer: Vittorio Giovara

rtpdec_hevc: drop unnecessary check

len is always >=1 in that case.

Bug-Id: CID 1238784

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=350ed1829268d343b791208c8fd1cddd44d52a8e
---

 libavformat/rtpdec_hevc.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c
index 49789b0..3ed7cac 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
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to