[FFmpeg-cvslog] avformat/avidec: don't save a copy of the packet's AVBufferRef on DV streams

James Almer git at videolan.org
Thu May 6 15:45:30 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun May  2 10:22:52 2021 -0300| [42895f590a3ab6cba57a5a7d47434faec2174f70] | committer: James Almer

avformat/avidec: don't save a copy of the packet's AVBufferRef on DV streams

It's no longer needed.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavformat/avidec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index d5dcab6193..e0d868e074 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1494,10 +1494,8 @@ resync:
         }
 
         if (CONFIG_DV_DEMUXER && dv_demux) {
-            AVBufferRef *avbuf = pkt->buf;
             size = avpriv_dv_produce_packet(avi->dv_demux, pkt,
                                             pkt->data, pkt->size, pkt->pos);
-            pkt->buf    = avbuf;
             pkt->flags |= AV_PKT_FLAG_KEY;
             if (size < 0)
                 av_packet_unref(pkt);



More information about the ffmpeg-cvslog mailing list