summaryrefslogtreecommitdiffstats
path: root/extra/vlc/ffmpeg-20071204.patch
blob: 97bf5d9f5dcb6c1f9fb4d39f3e0524ed6949e194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/modules/codec/ffmpeg/mux.c
+++ b/modules/codec/ffmpeg/mux.c
@@ -133,7 +133,11 @@ int E_(OpenMux)( vlc_object_t *p_this )
         return VLC_EGENERIC;
     }
 
+#if LIBAVFORMAT_VERSION_INT >= ((52<<16)+(0<<8)+0)
+       p_sys->oc->pb = &p_sys->io;
+#else
     p_sys->oc->pb = p_sys->io;
+#endif
     p_sys->oc->nb_streams = 0;
 
     p_sys->b_write_header = VLC_TRUE;