diff --git a/veejay-current/veejay-server/libel/avhelper.c b/veejay-current/veejay-server/libel/avhelper.c index c1b26a7b..99549eb5 100644 --- a/veejay-current/veejay-server/libel/avhelper.c +++ b/veejay-current/veejay-server/libel/avhelper.c @@ -146,7 +146,7 @@ int avhelper_hwaccel(AVCodecContext *codec_context) { for( i = 0;; i++ ) { - AVCodecHWConfig *hw_config = avcodec_get_hw_config(codec_context,i); + AVCodecHWConfig *hw_config = avcodec_get_hw_config(codec_context->codec,i); if(!hw_config) { veejay_msg(0, "Decoder %s does not support hwaccel", codec_context->codec->name); return 0;