Merge commit 'bfeb83a8b7d3fcf09a54d8dbc9c521e10bb17530'
* commit 'bfeb83a8b7d3fcf09a54d8dbc9c521e10bb17530': rtpdec_hevc: Drop extra sanity check for size of input packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
						commit
						d898482ae3
					
				| @ -249,14 +249,6 @@ static int hevc_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_hevc_ctx | |||||||
|     case 39: |     case 39: | ||||||
|     /* single NAL unit packet */ |     /* single NAL unit packet */ | ||||||
|     default: |     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 */ |         /* create A/V packet */ | ||||||
|         if ((res = av_new_packet(pkt, sizeof(start_sequence) + len)) < 0) |         if ((res = av_new_packet(pkt, sizeof(start_sequence) + len)) < 0) | ||||||
|             return res; |             return res; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user