avformat/tee: Use ref instead copy in write_packet
Replace av_copy_packet and deprecated av_dup_packet by creating reference using av_packet_ref. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
		
							parent
							
								
									a3c877aca7
								
							
						
					
					
						commit
						1bc83f6ea8
					
				| @ -527,8 +527,8 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt) | |||||||
|         if (s2 < 0) |         if (s2 < 0) | ||||||
|             continue; |             continue; | ||||||
| 
 | 
 | ||||||
|         if ((ret = av_copy_packet(&pkt2, pkt)) < 0 || |         memset(&pkt2, 0, sizeof(AVPacket)); | ||||||
|             (ret = av_dup_packet(&pkt2))< 0) |         if ((ret = av_packet_ref(&pkt2, pkt)) < 0) | ||||||
|             if (!ret_all) { |             if (!ret_all) { | ||||||
|                 ret_all = ret; |                 ret_all = ret; | ||||||
|                 continue; |                 continue; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user