*** ./configure.ORIG Thu Feb 3 12:12:22 2011 --- ./configure Thu Feb 3 13:26:42 2011 *************** *** 967,972 **** --- 967,973 ---- ' ARCH_LIST=' + AIX alpha arm avr32 *************** *** 1469,1475 **** nm_opts='-g' # machine ! arch_default=$(uname -m) cpu="generic" # OS --- 1470,1476 ---- nm_opts='-g' # machine ! arch_default=$(uname -s) cpu="generic" # OS *************** *** 1500,1506 **** # build settings SHFLAGS='-shared -Wl,-soname,$$(@F)' ! FFSERVERLDFLAGS=-Wl,-E LIBPREF="lib" LIBSUF=".a" FULLNAME='$(NAME)$(BUILDSUF)' --- 1501,1507 ---- # build settings SHFLAGS='-shared -Wl,-soname,$$(@F)' ! FFSERVERLDFLAGS= LIBPREF="lib" LIBSUF=".a" FULLNAME='$(NAME)$(BUILDSUF)' *************** *** 2287,2292 **** --- 2288,2295 ---- ;; gnu) ;; + aix) + ;; none) ;; *) *** ./libavformat/udp.c.ORIG Thu Feb 3 13:06:13 2011 --- ./libavformat/udp.c Thu Feb 3 13:07:24 2011 *************** *** 46,51 **** --- 46,55 ---- #define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff) #endif + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + typedef struct { int udp_fd; int ttl; *** ./configure.ORIG Fri Jun 24 00:10:58 2011 --- ./configure Fri Jun 24 00:11:04 2011 *************** *** 2992,2998 **** # add some linker flags check_ldflags -Wl,--warn-common check_ldflags -Wl,-rpath-link,libpostproc -Wl,-rpath-link,libswscale -Wl,-rpath-link,libavfilter -Wl,-rpath-link,libavdevice -Wl,-rpath-link,libavformat -Wl,-rpath-link,libavcodec -Wl,-rpath-link,libavutil - test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic echo "X{};" > $TMPV if test_ldflags -Wl,--version-script,$TMPV; then --- 2992,2997 ---- *** ./libavcodec/dnxhdenc.c.ORIG Sat Sep 10 22:05:16 2011 --- ./libavcodec/dnxhdenc.c Sat Sep 10 22:05:28 2011 *************** *** 36,42 **** {"nitris_compat", "encode with Avid Nitris compatibility", offsetof(DNXHDEncContext, nitris_compat), FF_OPT_TYPE_INT, {.dbl = 0}, 0, 1, VE}, {NULL} }; ! static const AVClass class = { "dnxhd", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow); --- 36,42 ---- {"nitris_compat", "encode with Avid Nitris compatibility", offsetof(DNXHDEncContext, nitris_compat), FF_OPT_TYPE_INT, {.dbl = 0}, 0, 1, VE}, {NULL} }; ! static const AVClass AIXclass = { "dnxhd", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; int dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow); *************** *** 872,876 **** .capabilities = CODEC_CAP_SLICE_THREADS, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), ! .priv_class = &class, }; --- 872,876 ---- .capabilities = CODEC_CAP_SLICE_THREADS, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), ! .priv_class = &AIXclass, }; *** ./libavcodec/libopencore-amr.c.ORIG Sat Sep 10 22:09:17 2011 --- ./libavcodec/libopencore-amr.c Sat Sep 10 22:09:36 2011 *************** *** 92,98 **** { NULL } }; ! static const AVClass class = { "libopencore_amrnb", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; --- 92,98 ---- { NULL } }; ! static const AVClass AIXclass = { "libopencore_amrnb", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; *************** *** 240,246 **** NULL, .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), ! .priv_class = &class, }; #endif --- 240,246 ---- NULL, .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), ! .priv_class = &AIXclass, }; #endif *** ./libavcodec/libvorbis.c.ORIG Sat Sep 10 22:09:51 2011 --- ./libavcodec/libvorbis.c Sat Sep 10 22:10:03 2011 *************** *** 58,64 **** {"iblock", "Sets the impulse block bias", offsetof(OggVorbisContext, iblock), FF_OPT_TYPE_DOUBLE, {.dbl = 0}, -15, 0, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM}, {NULL} }; ! static const AVClass class = { "libvorbis", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) { OggVorbisContext *context = avccontext->priv_data ; --- 58,64 ---- {"iblock", "Sets the impulse block bias", offsetof(OggVorbisContext, iblock), FF_OPT_TYPE_DOUBLE, {.dbl = 0}, -15, 0, AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_ENCODING_PARAM}, {NULL} }; ! static const AVClass AIXclass = { "libvorbis", av_default_item_name, options, LIBAVUTIL_VERSION_INT }; static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) { OggVorbisContext *context = avccontext->priv_data ; *************** *** 254,258 **** .capabilities= CODEC_CAP_DELAY, .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libvorbis Vorbis"), ! .priv_class= &class, } ; --- 254,258 ---- .capabilities= CODEC_CAP_DELAY, .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("libvorbis Vorbis"), ! .priv_class= &AIXclass, } ; *** ./libavcodec/pthread.c.ORIG Sat Sep 10 22:12:12 2011 --- ./libavcodec/pthread.c Sat Sep 10 22:12:58 2011 *************** *** 224,230 **** return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0); } ! static int thread_init(AVCodecContext *avctx) { int i; ThreadContext *c; --- 224,230 ---- return avcodec_thread_execute(avctx, NULL, arg, ret, job_count, 0); } ! static int AIXthread_init(AVCodecContext *avctx) { int i; ThreadContext *c; *************** *** 891,897 **** validate_thread_parameters(avctx); if (avctx->active_thread_type&FF_THREAD_SLICE) ! return thread_init(avctx); else if (avctx->active_thread_type&FF_THREAD_FRAME) return frame_thread_init(avctx); } --- 891,897 ---- validate_thread_parameters(avctx); if (avctx->active_thread_type&FF_THREAD_SLICE) ! return AIXthread_init(avctx); else if (avctx->active_thread_type&FF_THREAD_FRAME) return frame_thread_init(avctx); } *** ./libavformat/rtsp.c.ORIG Sat Sep 10 21:59:44 2011 --- ./libavformat/rtsp.c Sat Sep 10 22:00:18 2011 *************** *** 55,60 **** --- 55,64 ---- #define SDP_MAX_SIZE 16384 #define RECVBUF_SIZE 10 * RTP_MAX_PACKET_LENGTH + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + static void get_word_until_chars(char *buf, int buf_size, const char *sep, const char **pp) { *** ./libavformat/sapenc.c.ORIG Sat Sep 10 22:00:34 2011 --- ./libavformat/sapenc.c Sat Sep 10 22:00:47 2011 *************** *** 30,35 **** --- 30,39 ---- #include "rtpenc_chain.h" #include "url.h" + #if (defined(_AIX51) || defined(_AIX52) || defined(_AIX53)) && !(defined(_AIX61)) + #define ss_family __ss_family + #endif + struct SAPState { uint8_t *ann; int ann_size; *** ./libavformat/spdifenc.c.ORIG Sat Sep 10 22:01:17 2011 --- ./libavformat/spdifenc.c Sat Sep 10 22:01:36 2011 *************** *** 93,99 **** { NULL }, }; ! static const AVClass class = { .class_name = "spdif", .item_name = av_default_item_name, .option = options, --- 93,99 ---- { NULL }, }; ! static const AVClass AIXclass = { .class_name = "spdif", .item_name = av_default_item_name, .option = options, *************** *** 552,556 **** spdif_write_packet, spdif_write_trailer, .flags = AVFMT_NOTIMESTAMPS, ! .priv_class = &class, }; --- 552,556 ---- spdif_write_packet, spdif_write_trailer, .flags = AVFMT_NOTIMESTAMPS, ! .priv_class = &AIXclass, }; *** ./libavutil/eval.c.ORIG Sat Sep 10 22:16:13 2011 --- ./libavutil/eval.c Sat Sep 10 22:16:56 2011 *************** *** 46,52 **** double var[VARS]; } Parser; ! static const AVClass class = { "Eval", av_default_item_name, NULL, LIBAVUTIL_VERSION_INT, offsetof(Parser,log_offset), offsetof(Parser,log_ctx) }; static const int8_t si_prefixes['z' - 'E' + 1] = { ['y'-'E']= -24, --- 46,52 ---- double var[VARS]; } Parser; ! static const AVClass AIXclass = { "Eval", av_default_item_name, NULL, LIBAVUTIL_VERSION_INT, offsetof(Parser,log_offset), offsetof(Parser,log_ctx) }; static const int8_t si_prefixes['z' - 'E' + 1] = { ['y'-'E']= -24, *************** *** 474,480 **** if (!isspace(*s++)) *wp++ = s[-1]; *wp++ = 0; ! p.class = &class; p.stack_index=100; p.s= w; p.const_names = const_names; --- 474,480 ---- if (!isspace(*s++)) *wp++ = s[-1]; *wp++ = 0; ! p.class = &AIXclass; p.stack_index=100; p.s= w; p.const_names = const_names;