changeset 34530:c897dbc5f1de

Fix avcodec_open2 options argument.
author reimar
date Sat, 28 Jan 2012 12:15:38 +0000
parents 65f42b3c0efc
children fb0cb320209f
files libmpcodecs/ad_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Sat Jan 28 11:50:18 2012 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sat Jan 28 12:15:38 2012 +0000
@@ -139,7 +139,7 @@
     }
 
     /* open it */
-    if (avcodec_open2(lavc_context, lavc_codec, opts) < 0) {
+    if (avcodec_open2(lavc_context, lavc_codec, &opts) < 0) {
         mp_msg(MSGT_DECAUDIO,MSGL_ERR, MSGTR_CantOpenCodec);
         return 0;
     }