diff mbox series

[FFmpeg-devel,3/3] avcodec/mov: don't save a copy of the packet's AVBufferRef on DV streams

Message ID 20210502135819.53794-3-jamrial@gmail.com
State Accepted
Commit 55475b3289b3b2e0227c985e41b16d10edd6ab8c
Headers show
Series [FFmpeg-devel,1/3] avformat/dv: stop using av_init_packet() | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer May 2, 2021, 1:58 p.m. UTC
It's no longer needed.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/mov.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index ca8f06c4cd..ca6a0f2db4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -7930,9 +7930,7 @@  static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
         }
 #if CONFIG_DV_DEMUXER
         if (mov->dv_demux && sc->dv_audio_container) {
-            AVBufferRef *buf = pkt->buf;
             ret = avpriv_dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size, pkt->pos);
-            pkt->buf = buf;
             av_packet_unref(pkt);
             if (ret < 0)
                 return ret;