[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704942: RFP: mtn -- movie thumbnailer



Hi!

I tryed to package it now. The pre-compiled works fine and it is a nice program. However, when compiling the code in Debian Sid we have several errors and warnings (see below).

I need author code (upstream) fix the issues to I can put it in Debian. Please,reply if you have interest.

Thanks a lot in advance.

Best regards,

Eriberto - Brazil


$ uname -a
Linux canopus 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux

cc -o mtn mtn.c  -lavcodec -lavformat -lavcodec -lswscale -lavutil -lgd -lfreetype -ljpeg -lz -lm -lpthread
mtn.c: In function 'save_AVFrame':
mtn.c:832:9: warning: passing argument 2 of 'sws_scale' from incompatible pointer type [enabled by default]
In file included from mtn.c:61:0:
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t * const*' but argument is of type 'uint8_t **'
mtn.c: At top level:
mtn.c:934:53: warning: 'enum CodecType' declared inside parameter list [enabled by default]
mtn.c:934:53: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
mtn.c:934:63: error: parameter 2 ('type') has incomplete type
mtn.c: In function 'get_stream_info_type':
mtn.c:947:13: error: 'CODEC_TYPE_SUBTITLE' undeclared (first use in this function)
mtn.c:947:13: note: each undeclared identifier is reported only once for each function it appears in
mtn.c:948:26: error: 'AVStream' has no member named 'language'
mtn.c:949:61: error: 'AVStream' has no member named 'language'
mtn.c:981:38: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
mtn.c:997:22: error: 'AVStream' has no member named 'language'
mtn.c:998:51: error: 'AVStream' has no member named 'language'
mtn.c: In function 'get_stream_info':
mtn.c:1023:5: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1023:5: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1048:9: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1055:30: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
mtn.c:1056:30: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
mtn.c:1057:30: error: 'CODEC_TYPE_SUBTITLE' undeclared (first use in this function)
mtn.c: In function 'dump_format_context':
mtn.c:1076:9: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1079:10: error: 'AVFormatContext' has no member named 'track'
mtn.c:1080:50: error: 'AVFormatContext' has no member named 'track'
mtn.c:1081:10: error: 'AVFormatContext' has no member named 'title'
mtn.c:1082:50: error: 'AVFormatContext' has no member named 'title'
mtn.c:1083:10: error: 'AVFormatContext' has no member named 'author'
mtn.c:1084:51: error: 'AVFormatContext' has no member named 'author'
mtn.c:1085:10: error: 'AVFormatContext' has no member named 'copyright'
mtn.c:1086:54: error: 'AVFormatContext' has no member named 'copyright'
mtn.c:1087:10: error: 'AVFormatContext' has no member named 'comment'
mtn.c:1088:52: error: 'AVFormatContext' has no member named 'comment'
mtn.c:1089:10: error: 'AVFormatContext' has no member named 'album'
mtn.c:1090:50: error: 'AVFormatContext' has no member named 'album'
mtn.c:1091:10: error: 'AVFormatContext' has no member named 'year'
mtn.c:1092:49: error: 'AVFormatContext' has no member named 'year'
mtn.c:1093:10: error: 'AVFormatContext' has no member named 'genre'
mtn.c:1094:50: error: 'AVFormatContext' has no member named 'genre'
mtn.c: In function 'read_and_decode':
mtn.c:1190:13: warning: 'url_ferror' is deprecated (declared at /usr/include/libavformat/avio.h:339) [-Wdeprecated-declarations]
mtn.c:1206:68: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
mtn.c: In function 'guess_duration':
mtn.c:1324:5: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1325:9: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c: In function 'really_seek':
mtn.c:1412:5: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1416:9: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c:1417:9: warning: 'file_size' is deprecated (declared at /usr/include/libavformat/avformat.h:947) [-Wdeprecated-declarations]
mtn.c: In function 'make_thumbnail':
mtn.c:1557:5: warning: 'av_open_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
mtn.c:1569:5: warning: 'av_find_stream_info' is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
mtn.c:1580:13: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
mtn.c:1614:5: warning: 'avcodec_open' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
mtn.c:2017:13: warning: passing argument 2 of 'sws_scale' from incompatible pointer type [enabled by default]
In file included from mtn.c:61:0:
/usr/include/libswscale/swscale.h:234:5: note: expected 'const uint8_t * const*' but argument is of type 'uint8_t **'
mtn.c:2210:9: warning: 'av_close_input_file' is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
mtn.c: At top level:
mtn.c:2219:5: error: conflicting types for 'alphasort'
In file included from mtn.c:46:0:
/usr/include/dirent.h:325:12: note: previous declaration of 'alphasort' was here
make[2]: *** [mtn] Error 1

Reply to: