--- /dev/null
+--- ffmpeg-1.1/libavcodec/libutvideodec.cpp.orig 2013-01-06 22:53:29.000000000 +0100
++++ ffmpeg-1.1/libavcodec/libutvideodec.cpp 2013-01-22 20:20:53.825406063 +0100
+@@ -61,11 +61,11 @@ static av_cold int utvideo_decode_init(A
+ break;
+ case MKTAG('U', 'L', 'R', 'G'):
+ avctx->pix_fmt = AV_PIX_FMT_BGR24;
+- format = UTVF_RGB24_WIN;
++ format = UTVF_NFCC_BGR_BU;
+ break;
+ case MKTAG('U', 'L', 'R', 'A'):
+ avctx->pix_fmt = AV_PIX_FMT_RGB32;
+- format = UTVF_RGB32_WIN;
++ format = UTVF_NFCC_BGRA_BU;
+ break;
+ default:
+ av_log(avctx, AV_LOG_ERROR,
+--- ffmpeg-1.1/libavcodec/libutvideoenc.cpp.orig 2013-01-06 22:53:29.000000000 +0100
++++ ffmpeg-1.1/libavcodec/libutvideoenc.cpp 2013-01-22 20:21:17.268738905 +0100
+@@ -51,12 +51,12 @@ static av_cold int utvideo_encode_init(A
+ avctx->codec_tag = MKTAG('U', 'L', 'Y', '2');
+ break;
+ case AV_PIX_FMT_BGR24:
+- in_format = UTVF_RGB24_WIN;
++ in_format = UTVF_NFCC_BGR_BU;
+ avctx->bits_per_coded_sample = 24;
+ avctx->codec_tag = MKTAG('U', 'L', 'R', 'G');
+ break;
+ case AV_PIX_FMT_RGB32:
+- in_format = UTVF_RGB32_WIN;
++ in_format = UTVF_NFCC_BGRA_BU;
+ avctx->bits_per_coded_sample = 32;
+ avctx->codec_tag = MKTAG('U', 'L', 'R', 'A');
+ break;
-# TODO: libsoxr [libsoxr, soxr.h]
#
# How to deal with ffmpeg/opencv checken-egg problem:
# 1. make-request -r --without opencv ffmpeg.spec
%bcond_without openal # OpenAL 1.1 capture support
%bcond_without opencv # OpenCV video filtering
%bcond_without pulseaudio # PulseAudio input support
+%bcond_without soxr # SoX Resampler support
%bcond_without x264 # x264 encoder
%bcond_without utvideo # Ut Video decoder
%bcond_without va # VAAPI (Video Acceleration API)
Patch0: %{name}-gsm.patch
Patch1: %{name}-opencv24.patch
Patch2: %{name}-cdio-paranoia.patch
+Patch3: %{name}-utvideo.patch
URL: http://www.ffmpeg.org/
%{?with_openal:BuildRequires: OpenAL-devel >= 1.1}
BuildRequires: SDL-devel >= 1.2.1
%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
BuildRequires: rpmbuild(macros) >= 1.470
BuildRequires: schroedinger-devel
+%{?with_soxr:BuildRequires: soxr-devel}
BuildRequires: speex-devel >= 1:1.2-rc1
%{?with_doc:BuildRequires: tetex}
%{?with_doc:BuildRequires: texi2html}
%{?with_doc:BuildRequires: texinfo}
BuildRequires: twolame-devel
-%{?with_utvideo:BuildRequires: utvideo-devel}
+%{?with_utvideo:BuildRequires: utvideo-devel >= 12}
BuildRequires: vo-aacenc-devel
BuildRequires: vo-amrwbenc-devel
%{?with_ilbc:BuildRequires: webrtc-libilbc-devel}
# overflows maximum hash table size
BuildConflicts: pdksh < 5.2.14-57
Requires: %{name}-libs = %{version}-%{release}
+%{?with_utvideo:Requires: utvideo >= 12}
%{?with_ilbc:Requires: webrtc-libilbc}
Requires: xvid >= 1:1.1.0
Obsoletes: libpostproc
%{?with_opencv:Requires: opencv-devel}
Requires: openjpeg-devel >= 1.5
Requires: schroedinger-devel
+%{?with_soxr:Requires: soxr-devel}
Requires: speex-devel >= 1:1.2-rc1
Requires: twolame-devel
+%{?with_utvideo:Requires: utvideo-devel >= 12}
Requires: vo-aacenc-devel
Requires: vo-amrwbenc-devel
%{?with_ilbc:Requires: webrtc-libilbc-devel}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
# package the grep result for mplayer, the result formatted as ./mplayer/configure
cat <<EOF > ffmpeg-avconfig
%{?with_pulseaudio:--enable-libpulse} \
--enable-librtmp \
--enable-libschroedinger \
+ %{?with_soxr:--enable-libsoxr} \
--enable-libspeex \
--enable-libtheora \
--enable-libtwolame \