| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -179,10 +179,8 @@ const uint8_t *ff_h264_decode_nal(H264Context *h, const uint8_t *src, int *dst_l | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    bufidx = h->nal_unit_type == NAL_DPC ? 1 : 0; // use second escape buffer for inter data | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    si=h->rbsp_buffer_size[bufidx]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    av_fast_malloc(&h->rbsp_buffer[bufidx], &h->rbsp_buffer_size[bufidx], length+FF_INPUT_BUFFER_PADDING_SIZE+MAX_MBPAIR_SIZE); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    av_fast_padded_malloc(&h->rbsp_buffer[bufidx], &h->rbsp_buffer_size[bufidx], length+MAX_MBPAIR_SIZE); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    dst= h->rbsp_buffer[bufidx]; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if(si != h->rbsp_buffer_size[bufidx]) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        memset(dst + length, 0, FF_INPUT_BUFFER_PADDING_SIZE+MAX_MBPAIR_SIZE); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (dst == NULL){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        return NULL; | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |