changeset 36370:3cc8224f3c6c

Set skip_alpha, we currently have no use for alpha values.
author reimar
date Tue, 15 Oct 2013 18:44:09 +0000
parents 3dfc82c0a678
children bbf289ad03f2
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Oct 15 18:44:08 2013 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue Oct 15 18:44:09 2013 +0000
@@ -31,6 +31,7 @@
 #include "libavutil/common.h"
 #include "libavutil/dict.h"
 #include "libavutil/intreadwrite.h"
+#include "libavutil/opt.h"
 #include "mpbswap.h"
 #include "fmt-conversion.h"
 
@@ -386,6 +387,7 @@
     avctx->skip_loop_filter = str2AVDiscard(lavc_param_skip_loop_filter_str);
     avctx->skip_idct        = str2AVDiscard(lavc_param_skip_idct_str);
     avctx->skip_frame       = str2AVDiscard(lavc_param_skip_frame_str);
+    av_opt_set_int(avctx, "skip_alpha", 1, 0);
 
     if(lavc_avopt){
         if (parse_avopts(avctx, lavc_avopt) < 0 &&