Thread: error: expected specifier-qualifier-list before ‘IDirectXVideoDecoder’

  1. #1
    Registered User
    Join Date
    Feb 2011

    Exclamation error: expected specifier-qualifier-list before ‘IDirectXVideoDecoder’

    Hello, I don't know much about C programming, and this is my first post here, but I was just wondering if someone could help me with a compiling issue. Here is the full error that I am getting while trying to compile FFmpeg (written in C) with mingw: CC libavcodec/dxva2.o In file included from /home - FFmpeg Make Error

    I'm sorry if this is the wrong place to do this but I'm not getting any help anywhere else, and I'm pulling my hair out trying to fix this problem. Here is lines 1-40 (up to the error) of dxva2.h (the problem file).

     * DXVA2 HW acceleration
     * copyright (c) 2009 Laurent Aimar
     * This file is part of FFmpeg.
     * FFmpeg is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either
     * version 2.1 of the License, or (at your option) any later version.
     * FFmpeg is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * Lesser General Public License for more details.
     * You should have received a copy of the GNU Lesser General Public
     * License along with FFmpeg; if not, write to the Free Software
     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
    #ifndef AVCODEC_DXVA_H
    #define AVCODEC_DXVA_H
    #include <stdint.h>
    #include <dxva2api.h>
     * This structure is used to provides the necessary configurations and data
     * to the DXVA2 FFmpeg HWAccel implementation.
     * The application must make it available as AVCodecContext.hwaccel_context.
    struct dxva_context {
         * DXVA2 decoder object
        IDirectXVideoDecoder *decoder;
    Does anyone have any idea what might be causing this issue and what I would need to do to fix it? I've tried defining COBJMACROS already (which I've read is the issue) but it still fails to make with that error.

    Thanks a bunch.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Use the forums / mailing lists / chat rooms of the project itself.
    Contact Us

    How To Ask Questions The Smart Way
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c program that accepts and executes commands?
    By Cimposter in forum C Programming
    Replies: 3
    Last Post: 09-30-2009, 02:58 PM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 08:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 04:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM
Website Security Test