openal-dec: replace av_destruct_packet with av_free_packet
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
		
							parent
							
								
									c363843a53
								
							
						
					
					
						commit
						9acf5341d6
					
				@ -204,7 +204,7 @@ static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
 | 
				
			|||||||
fail:
 | 
					fail:
 | 
				
			||||||
    /* Handle failure */
 | 
					    /* Handle failure */
 | 
				
			||||||
    if (pkt->data)
 | 
					    if (pkt->data)
 | 
				
			||||||
        av_destruct_packet(pkt);
 | 
					        av_free_packet(pkt);
 | 
				
			||||||
    if (error_msg)
 | 
					    if (error_msg)
 | 
				
			||||||
        av_log(ctx, AV_LOG_ERROR, "Error: %s\n", error_msg);
 | 
					        av_log(ctx, AV_LOG_ERROR, "Error: %s\n", error_msg);
 | 
				
			||||||
    return error;
 | 
					    return error;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user