whtech / doubango

Automatically exported from code.google.com/p/doubango
0 stars 1 forks source link

CodecID needs to change to AVCodecID #379

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://doubango.googlecode.com/svn/branches/2.0/doubango 
doubango   (currently version 1091 )

2../autogen.sh && ./configure --prefix="$INSTALL_DIR" --with-ssl --with-srtp 
--with-vpx --with-speex --with-speexdsp --with-opus --with-gsm --with-ffmpeg

3.make && make install

What is the expected output? What do you see instead?

the libraries should all compile and install properly

instead we get the following error

src/codecs/h263/tdav_codec_h263.c:188:107: warning: 'enum CodecID' declared 
inside parameter list [enabled by default]
 int tdav_codec_h263_init(tdav_codec_h263_t* self, tdav_codec_h263_type_t type, enum CodecID encoder, enum CodecID decoder)
                                                                                                           ^
src/codecs/h263/tdav_codec_h263.c:188:93: error: parameter 3 ('encoder') has 
incomplete type
 int tdav_codec_h263_init(tdav_codec_h263_t* self, tdav_codec_h263_type_t type, enum CodecID encoder, enum CodecID decoder)
                                                                                             ^
src/codecs/h263/tdav_codec_h263.c:188:115: error: parameter 4 ('decoder') has 
incomplete type
 int tdav_codec_h263_init(tdav_codec_h263_t* self, tdav_codec_h263_type_t type, enum CodecID encoder, enum CodecID decoder)
                                                                                                                   ^
src/codecs/h263/tdav_codec_h263.c: In function 'tdav_codec_h263_encode':
src/codecs/h263/tdav_codec_h263.c:315:2: warning: 'avcodec_encode_video' is 
deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4340) [-Wd

I was able to make it compile properly with the following change

sed -i 's/CodecID/AVCodecID/g' tinyDAV/src/codecs/h263/*.c

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by dar...@tuxit.ca on 13 May 2014 at 9:45