Changes of Revision 54
[-] | Changed | ffmpeg.spec |
x 1
2 # norootforbuild 3 4 %define name ffmpeg 5 -%define version 0.4.9svn 6 -%define release 20080908 7 +%define version 0.4.9.16240svn 8 +%define release 20081219.pm.2021 9 %define major 0 10 %define lib libffmpeg 11 %define libname %{lib}%{major} 12 -%define majoravcodec 51 13 +%define majoravcodec 52 14 %define libavcodec libavcodec 15 %define libnameavcodec %{libavcodec}%{majoravcodec} 16 %define majoravdevice 52 17
18 Summary(de): Hyperschneller MPEG1/MPEG4/H263/RV Und AC3/MPEG Audio-Encoder 19 URL: http://ffmpeg.sourceforge.net 20 21 -Source0: ffmpeg-svn.tar.bz2 22 +Source0: ffmpeg-0.4.9.16240svn.tar.bz2 23 24 Patch0: ffmpeg_configure.diff 25 -#Patch1: ffmpeg_fix_wmadecoding.diff 26 BuildRoot: %{_tmppath}/%{name}-buildroot 27 Prefix: %{_prefix} 28 Requires: %{libnameavcodec} = %{version}-%{release} 29
30 Requires: %{libnameavformat} = %{version}-%{release} 31 Requires: %{libnameavutil} = %{version}-%{release} 32 Requires: %{libnameswscale} = %{version}-%{release} 33 -Requires: imlib2 34 -Requires: libmp3lame0 35 -Requires: libogg 36 -Requires: libvorbis 37 -Requires: libtheora 38 -Requires: ncurses 39 -Requires: alsa 40 -Requires: freetype2 41 -Requires: SDL 42 -Requires: slang 43 -%if 0%{?suse_version} >= 920 44 -Requires: xorg-x11-libs 45 -%endif 46 -%if 0%{?suse_version} > 0 && 0%{?suse_version} < 920 47 -Requires: XFree86-libs 48 -%endif 49 -Requires: zlib 50 -Requires: libfaad2_0 >= 2.6 51 -Requires: libfaac0 >= 1.26 52 -Requires: libamrnb3 53 -Requires: libamrwb3 54 %if 0%{?suse_version} >= 930 55 BuildRequires: libdca-devel 56 BuildRequires: libdca0 57 -Requires: libdca0 58 %endif 59 BuildRequires: yasm >= 0.7.1 60 %if 0%{?suse_version} >= 1010 || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 61
62 BuildRequires: libmp3lame-devel 63 BuildRequires: libogg-devel 64 BuildRequires: libvorbis-devel 65 -BuildRequires: libtheora-devel 66 +BuildRequires: libtheora-devel >= 1.0.final 67 BuildRequires: ncurses-devel 68 -BuildRequires: libjack0 >= 0.109.2 69 -BuildRequires: libjack-devel >= 0.109.2 70 +BuildRequires: libjack-devel 71 BuildRequires: alsa-devel 72 BuildRequires: freetype2-devel 73 BuildRequires: SDL-devel 74 BuildRequires: slang-devel 75 -%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 76 -BuildRequires: xorg-x11-proto-devel xorg-x11-xtrans-devel 77 -%endif 78 %if 0%{?suse_version} >= 920 79 BuildRequires: xorg-x11-devel 80 -%endif 81 -%if 0%{?suse_version} > 0 && 0%{?suse_version} < 920 82 +%else 83 BuildRequires: XFree86-devel 84 %endif 85 BuildRequires: zlib-devel 86 -BuildRequires: libfaad2_0 >= 2.6 87 -BuildRequires: libfaad2-devel >= 2.6 88 +BuildRequires: libfaad0 >= 2.6 89 +BuildRequires: libfaad-devel >= 2.6 90 BuildRequires: libfaac-devel >= 1.26 91 BuildRequires: libx264-devel 92 -BuildRequires: xvid-devel 93 +BuildRequires: libxvidcore-devel 94 BuildRequires: libmp4v2-devel 95 BuildRequires: texinfo 96 BuildRequires: libamrnb-devel 97 BuildRequires: libamrwb-devel 98 -BuildRequires: liba52dec-devel 99 +#BuildRequires: liba52-devel 100 BuildRequires: libdc1394 101 BuildRequires: libdc1394-devel 102 -#BuildRequires: libschroedinger-devel 103 -%if 0%{?suse_version} >= 1100 104 -BuildRequires: libnut-devel 105 -%endif 106 +%if 0%{?suse_version} >= 1030 107 +BuildRequires: libschroedinger-devel >= 1.0.5 108 +BuildRequires: liboil-devel >= 0.3.15 109 +BuildRequires: libdirac-devel >= 1.0.0 110 +%endif 111 +#%if 0%{?suse_version} >= 1100 112 +#BuildRequires: libnut-devel 113 +#%endif 114 %if 0%{?suse_version} > 1020 115 BuildRequires: libdc1394_control12-devel 116 %endif 117 #BuildRequires: G.729-devel 118 119 -%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} 120 -BuildRequires: texi2html 121 -%endif 122 - 123 %description 124 ffmpeg is a hyper fast realtime audio/video encoder, a streaming server 125 and a generic audio and video file converter. 126
127 Requires: libmp3lame-devel 128 Requires: libogg-devel 129 Requires: libvorbis-devel 130 -Requires: libtheora-devel 131 +Requires: libtheora-devel >= 1.0.final 132 Requires: alsa-devel 133 Requires: slang-devel 134 Requires: zlib-devel 135 -Requires: libfaad2-devel 136 +Requires: libfaad-devel 137 Requires: libfaac-devel 138 -Requires: xvid-devel 139 +Requires: libxvidcore-devel 140 Requires: libmp4v2-devel 141 Requires: libx264-devel 142 Requires: libamrnb-devel 143 Requires: libamrwb-devel 144 -Requires: liba52dec-devel 145 -Requires: libjack0 >= 0.109.2 146 -Requires: libjack-devel >= 0.109.2 147 +#Requires: liba52-devel 148 +Requires: libjack-devel 149 %if 0%{?suse_version} > 930 150 Requires: libdca-devel 151 %endif 152
153 %endif 154 Requires: libdc1394 155 Requires: libdc1394-devel 156 -#Requires: libschroedinger-devel 157 -%if 0%{?suse_version} >= 1100 158 -Requires: libnut-devel 159 -%endif 160 +%if 0%{?suse_version} >= 1030 161 +Requires: libschroedinger-devel >= 1.0.5 162 +Requires: liboil-devel >= 0.3.15 163 +Requires: libdirac-devel >= 1.0.0 164 +%endif 165 +#%if 0%{?suse_version} >= 1100 166 +#Requires: libnut-devel 167 +#%endif 168 %if 0%{?suse_version} > 1020 169 Requires: libdc1394_control12-devel 170 %endif 171
172 %prep 173 %setup -q -n %{name} 174 %patch0 175 -##%patch1 176 -%if 0%{?suse_version} 177 + 178 %suse_update_libdir configure 179 -%endif 180 #don't call ldconfig on install 181 #perl -pi -e 's/ldconfig \|\| true//' libavcodec/Makefile 182 183
184 %endif 185 186 CFLAGS="$RPM_OPT_FLAGS $archflags" 187 -%if 0%{?suse_version} >= 1010 || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 188 +%if 0%{?suse_version} >= 1010 189 CFLAGS="${CFLAGS} -I%{_includedir}/gsm" 190 %endif 191 export archflags 192
193 %endif 194 --libdir=%{_libdir} --enable-shared --enable-libmp3lame \ 195 --enable-libvorbis --enable-libtheora --enable-libfaad \ 196 - --enable-libfaac --enable-libxvid --enable-liba52 --enable-swscale \ 197 + --enable-libfaac --enable-libxvid --enable-swscale \ 198 --enable-postproc --enable-gpl --enable-vhook --enable-x11grab \ 199 -%if 0%{?suse_version} >= 1100 200 - --enable-libnut \ 201 |
||
[+] | Deleted | ffmpeg_fix_wmadecoding.diff ^ |
@@ -1,83 +0,0 @@ ---- libavcodec/wmadec.c.orig 2008-08-12 21:38:07.000000000 +0200 -+++ libavcodec/wmadec.c 2008-08-15 16:56:01.000000000 +0200 -@@ -403,13 +403,13 @@ - v |= a; - } - -- bsize = s->frame_len_bits - s->block_len_bits; -- - /* if no channel coded, no need to go further */ - /* XXX: fix potential framing problems */ - if (!v) - goto next; - -+ bsize = s->frame_len_bits - s->block_len_bits; -+ - /* read total gain and extract corresponding number of bits for - coef escape coding */ - total_gain = 1; -@@ -681,28 +681,27 @@ - } - } - --next: - for(ch = 0; ch < s->nb_channels; ch++) { -- int n4, index, n; - -- n = s->block_len; -- n4 = s->block_len / 2; - if(s->channel_coded[ch]){ -+ int n4, index, n; -+ n = s->block_len; -+ n4 = s->block_len / 2; - ff_imdct_calc(&s->mdct_ctx[bsize], s->output, s->coefs[ch]); -- }else -- memset(s->output, 0, sizeof(s->output)); - -- /* multiply by the window and add in the frame */ -- index = (s->frame_len / 2) + s->block_pos - n4; -- wma_window(s, &s->frame_out[ch][index]); -- -- /* specific fast case for ms-stereo : add to second -- channel if it is not coded */ -- if (s->ms_stereo && !s->channel_coded[1]) { -- wma_window(s, &s->frame_out[1][index]); -+ /* multiply by the window and add in the frame */ -+ index = (s->frame_len / 2) + s->block_pos - n4; -+ wma_window(s, &s->frame_out[ch][index]); -+ -+ /* specific fast case for ms-stereo : add to second -+ channel if it is not coded */ -+ if (s->ms_stereo && !s->channel_coded[1]) { -+ wma_window(s, &s->frame_out[1][index]); -+ } - } - } - -+next: - /* update block number */ - s->block_num++; - s->block_pos += s->block_len; -@@ -784,11 +783,6 @@ - skip_bits(&s->gb, 4); /* super frame index */ - nb_frames = get_bits(&s->gb, 4) - 1; - -- if((nb_frames+1) * s->nb_channels * s->frame_len * sizeof(int16_t) > *data_size){ -- av_log(s->avctx, AV_LOG_ERROR, "Insufficient output space\n"); -- goto fail; -- } -- - bit_offset = get_bits(&s->gb, s->byte_offset_bits + 3); - - if (s->last_superframe_len > 0) { -@@ -844,10 +838,6 @@ - s->last_superframe_len = len; - memcpy(s->last_superframe, buf + pos, len); - } else { -- if(s->nb_channels * s->frame_len * sizeof(int16_t) > *data_size){ -- av_log(s->avctx, AV_LOG_ERROR, "Insufficient output space\n"); -- goto fail; -- } - /* single frame decode */ - if (wma_decode_frame(s, samples) < 0) - goto fail; | ||
Added | ffmpeg-0.4.9.16240svn.tar.bz2 ^ | |
Deleted | ffmpeg-svn.tar.bz2 ^ |