]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpdec_hevc.c
Merge commit '58a840e21577a2168843487a98cb2cea44b5a94a'
[ffmpeg] / libavformat / rtpdec_hevc.c
index 8e25e960441a642e5770fb214352fdf4c135fc09..6ceae4429d146e5dbde40ba295724690fcebcc8e 100644 (file)
@@ -249,14 +249,6 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx
     case 39:
     /* single NAL unit packet */
     default:
-        /* sanity check for size of input packet: 1 byte payload at least */
-        if (len < 1) {
-            av_log(ctx, AV_LOG_ERROR,
-                   "Too short RTP/HEVC packet, got %d bytes of NAL unit type %d\n",
-                   len, nal_type);
-            return AVERROR_INVALIDDATA;
-        }
-
         /* create A/V packet */
         if ((res = av_new_packet(pkt, sizeof(start_sequence) + len)) < 0)
             return res;