[FFmpeg-cvslog] avconv: do not free muxed packet on streamcopy.

Anton Khirnov git at videolan.org
Sat Nov 3 14:35:43 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Oct 31 21:15:41 2012 +0100| [c8977f6d268462e237cee38be6159c7bb701c62e] | committer: Anton Khirnov

avconv: do not free muxed packet on streamcopy.

The packet belongs to lavf, the caller must not free it or access it in
any other way.
No change in practice, since destruct is set to NULL anyway.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8977f6d268462e237cee38be6159c7bb701c62e
---

 avconv.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/avconv.c b/avconv.c
index d0902a6..964847a 100644
--- a/avconv.c
+++ b/avconv.c
@@ -1045,7 +1045,6 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
 
     write_frame(of->ctx, &opkt, ost);
     ost->st->codec->frame_number++;
-    av_free_packet(&opkt);
 }
 
 static void rate_emu_sleep(InputStream *ist)



More information about the ffmpeg-cvslog mailing list