[MPlayer-cvslog] r37372 - trunk/libmpcodecs/ad_spdif.c

michael subversion at mplayerhq.hu
Wed Feb 11 02:51:13 CET 2015


Author: michael
Date: Wed Feb 11 02:51:12 2015
New Revision: 37372

Log:
mpcodecs/ad_spdif: Avoid build failure with access to internal field

Note, this is not the optimal solution, mplayer should not access this field at all

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

Modified:
   trunk/libmpcodecs/ad_spdif.c

Modified: trunk/libmpcodecs/ad_spdif.c
==============================================================================
--- trunk/libmpcodecs/ad_spdif.c	Tue Feb 10 14:46:10 2015	(r37371)
+++ trunk/libmpcodecs/ad_spdif.c	Wed Feb 11 02:51:12 2015	(r37372)
@@ -23,6 +23,7 @@
 #include "ad_internal.h"
 #include "av_helpers.h"
 #include "libavformat/avformat.h"
+#include "libavformat/internal.h"
 #include "libavcodec/avcodec.h"
 #include "libavutil/opt.h"
 
@@ -129,7 +130,7 @@ static int init(sh_audio_t *sh)
             break;
         }
     }
-    lavf_ctx->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE;
+    lavf_ctx->internal->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE;
     if (AVERROR_PATCHWELCOME == lavf_ctx->oformat->write_header(lavf_ctx)) {
         mp_msg(MSGT_DECAUDIO,MSGL_INFO,
                "This codec is not supported by spdifenc.\n");


More information about the MPlayer-cvslog mailing list