[vlc-commits] avformat: remove stray codec.opaque

Rémi Denis-Courmont git at videolan.org
Sat Nov 4 09:38:06 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov  4 10:29:11 2017 +0200| [d7dfe02cdb2aca03a312aeeaf32ac29055642f76] | committer: Rémi Denis-Courmont

avformat: remove stray codec.opaque

Our data pointer is passed by the AVIO context, not the codec.

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

 modules/demux/avformat/mux.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 5257eaa929..3cc8ba97ad 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -238,8 +238,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
     }
     codec = stream->codec;
 
-    codec->opaque = p_mux;
-
     unsigned int i_bitrate = fmt->i_bitrate;
     unsigned int i_frame_rate = fmt->video.i_frame_rate;
     unsigned int i_frame_rate_base = fmt->video.i_frame_rate_base;



More information about the vlc-commits mailing list