Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: configure
- ===================================================================
- --- configure (リビジョン 21225)
- +++ configure (作業コピー)
- @@ -1851,7 +1851,7 @@
- fi
- add_cppflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
- -check_cflags -std=c99
- +check_cflags -std=gnu99
- check_cc -D_FILE_OFFSET_BITS=64 <<EOF && add_cppflags -D_FILE_OFFSET_BITS=64
- #include <stdlib.h>
- EOF
- @@ -2379,6 +2379,9 @@
- add_extralibs -pthreads
- elif check_func pthread_create -lpthreadGC2; then
- add_extralibs -lpthreadGC2
- + elif check_func pthread_create -lpthreadGC2 -lws2_32; then
- + add_cflags -DPTW32_STATIC_LIB
- + add_extralibs -lpthreadGC2 -lws2_32
- elif ! check_lib pthread.h pthread_create -lpthread; then
- die "ERROR: can't find pthreads library"
- fi
- @@ -2424,10 +2427,10 @@
- enabled libspeex && require libspeex speex/speex.h speex_decoder_init -lspeex
- enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg
- enabled libvorbis && require libvorbis vorbis/vorbisenc.h vorbis_info_init -lvorbisenc -lvorbis -logg
- -enabled libx264 && require libx264 x264.h x264_encoder_encode -lx264 -lm &&
- +enabled libx264 && require libx264 x264.h x264_encoder_encode -lx264 -lm -lpthreadGC2 -lws2_32 &&
- { check_cpp_condition x264.h "X264_BUILD >= 79" ||
- die "ERROR: libx264 version must be >= 0.79."; }
- -enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
- +enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore -lpthreadGC2 -lws2_32
- enabled mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -lmlib
- # libdc1394 check
- Index: ffmpeg.c
- ===================================================================
- --- ffmpeg.c (リビジョン 21225)
- +++ ffmpeg.c (作業コピー)
- @@ -50,6 +50,7 @@
- #if HAVE_SYS_SELECT_H
- #include <sys/select.h>
- +#define usleep(t) Sleep((t) / 1000)
- #endif
- #if HAVE_TERMIOS_H
- Index: libavcodec/opt.c
- ===================================================================
- --- libavcodec/opt.c (リビジョン 21225)
- +++ libavcodec/opt.c (作業コピー)
- @@ -175,6 +175,7 @@
- if(o->type == FF_OPT_TYPE_FLAGS){
- if (cmd=='+') d= av_get_int(obj, name, NULL) | (int64_t)d;
- else if(cmd=='-') d= av_get_int(obj, name, NULL) &~(int64_t)d;
- + else if(buf[0]=='0' && buf[1]=='x') d= strtoul(buf, NULL, 16);
- }else{
- if (cmd=='+') d= notfirst*av_get_double(obj, name, NULL) + d;
- else if(cmd=='-') d= notfirst*av_get_double(obj, name, NULL) - d;
- Index: libavcodec/libmp3lame.c
- ===================================================================
- --- libavcodec/libmp3lame.c (リビジョン 21225)
- +++ libavcodec/libmp3lame.c (作業コピー)
- @@ -34,6 +34,7 @@
- int stereo;
- uint8_t buffer[BUFFER_SIZE];
- int buffer_index;
- + int buffer_flushed;
- } Mp3AudioContext;
- static av_cold int MP3lame_encode_init(AVCodecContext *avctx)
- @@ -73,6 +74,8 @@
- avctx->coded_frame= avcodec_alloc_frame();
- avctx->coded_frame->key_frame= 1;
- + s->buffer_flushed = 0;
- +
- return 0;
- err_close:
- @@ -166,13 +169,15 @@
- BUFFER_SIZE - s->buffer_index
- );
- }
- - }else{
- + }else if (data == NULL && s->buffer_flushed == 0){
- lame_result= lame_encode_flush(
- s->gfp,
- s->buffer + s->buffer_index,
- BUFFER_SIZE - s->buffer_index
- );
- - }
- + s->buffer_flushed = 1;
- + }else
- + lame_result = 0;
- if(lame_result < 0){
- if(lame_result==-1) {
- Index: libavformat/rmdec.c
- ===================================================================
- --- libavformat/rmdec.c (リビジョン 21225)
- +++ libavformat/rmdec.c (作業コピー)
- @@ -315,17 +315,17 @@
- st->codec->width = get_be16(pb);
- st->codec->height = get_be16(pb);
- st->codec->time_base.num= 1;
- - fps= get_be16(pb);
- + fps = get_be16(pb);
- st->codec->codec_type = CODEC_TYPE_VIDEO;
- get_be32(pb);
- - fps2= get_be16(pb);
- + fps2 = get_be16(pb);
- get_be16(pb);
- if ((ret = rm_read_extradata(pb, st->codec, codec_data_size - (url_ftell(pb) - codec_pos))) < 0)
- return ret;
- // av_log(s, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
- - st->codec->time_base.den = fps * st->codec->time_base.num;
- + st->codec->time_base.den = fps2 * st->codec->time_base.num;
- //XXX: do we really need that?
- switch(st->codec->extradata[4]>>4){
- case 1: st->codec->codec_id = CODEC_ID_RV10; break;
Advertisement
Add Comment
Please, Sign In to add comment