[MPlayer-cvslog] r37450 - trunk/libmpdemux/demux_lavf.c

rtogni subversion at mplayerhq.hu
Mon Aug 17 23:17:16 CEST 2015


Author: rtogni
Date: Mon Aug 17 23:17:16 2015
New Revision: 37450

Log:
Stop using deprecatet AVPacket.destruct

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Mon Aug 17 20:17:38 2015	(r37449)
+++ trunk/libmpdemux/demux_lavf.c	Mon Aug 17 23:17:16 2015	(r37450)
@@ -682,16 +682,9 @@ static int demux_lavf_fill_buffer(demuxe
         return 1;
     }
 
-    if(pkt.destruct == av_destruct_packet && !CONFIG_MEMALIGN_HACK){
-        dp=new_demux_packet(0);
-        dp->len=pkt.size;
-        dp->buffer=pkt.data;
-        pkt.destruct= NULL;
-    }else{
         dp=new_demux_packet(pkt.size);
         memcpy(dp->buffer, pkt.data, pkt.size);
         av_free_packet(&pkt);
-    }
 
     if(pkt.pts != AV_NOPTS_VALUE){
         dp->pts=pkt.pts * av_q2d(priv->avfc->streams[id]->time_base);


More information about the MPlayer-cvslog mailing list