mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	normalize calls to ff_alloc_packet2
- check ret < 0 - remove excessive error log Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		 James Zern
					James Zern
				
			
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			 Michael Niedermayer
						Michael Niedermayer
					
				
			
						parent
						
							c257fe1fde
						
					
				
				
					commit
					bcaf64b605
				
			| @@ -632,7 +632,7 @@ static int sonic_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, | ||||
|     int ret; | ||||
|     const short *samples = (const int16_t*)frame->data[0]; | ||||
|  | ||||
|     if ((ret = ff_alloc_packet2(avctx, avpkt, s->frame_size * 5 + 1000))) | ||||
|     if ((ret = ff_alloc_packet2(avctx, avpkt, s->frame_size * 5 + 1000)) < 0) | ||||
|         return ret; | ||||
|  | ||||
|     init_put_bits(&pb, avpkt->data, avpkt->size); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user