summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-09 20:00:06 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-09 20:00:11 +0100
commitd898482ae34fe55a59be5cc0b11a521becb45a43 (patch)
tree4937104481e14a6e631ab2265336033a8de8796f /libavformat/rtpdec_hevc.c
parentb3a56e60be30a7bcad203b52ee43cd4c698b4bd9 (diff)
parentbfeb83a8b7d3fcf09a54d8dbc9c521e10bb17530 (diff)
Merge commit 'bfeb83a8b7d3fcf09a54d8dbc9c521e10bb17530'
* commit 'bfeb83a8b7d3fcf09a54d8dbc9c521e10bb17530': rtpdec_hevc: Drop extra sanity check for size of input packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_hevc.c')
-rw-r--r--libavformat/rtpdec_hevc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c
index 8e25e96044..6ceae4429d 100644
--- a/libavformat/rtpdec_hevc.c
+++ b/libavformat/rtpdec_hevc.c
@@ -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;