ra144enc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									e22113cf1d
								
							
						
					
					
						commit
						b7d4eebd3b
					
				@ -458,8 +458,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
 | 
			
		||||
    if (ractx->last_frame)
 | 
			
		||||
        return 0;
 | 
			
		||||
 | 
			
		||||
    if ((ret = ff_alloc_packet(avpkt, FRAMESIZE))) {
 | 
			
		||||
        av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
 | 
			
		||||
    if ((ret = ff_alloc_packet2(avctx, avpkt, FRAMESIZE))) {
 | 
			
		||||
        return ret;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user