Bug 184014 - media-video/transcode-1.0.3 fails with ffmpeg-0.4.9_p20070616-r1 - patch attached
Bug#: 184014 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: gentoo@digadd.de
Component: Applications
URL: 
Summary: media-video/transcode-1.0.3 fails with ffmpeg-0.4.9_p20070616-r1 - patch attached
Keywords:  
Status Whiteboard: 
Opened: 2007-07-02 19:25 0000
Description:   Opened: 2007-07-02 19:25 0000
Recent changed in ffmpeg snapshots seem to break trancode-1.0.3:

/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I..  -D_REENTRANT -DMOD_PATH=\"/usr/lib/transcode\" -I..
-I../src -I../import -I../libac3 -I../avilib  -I/usr/include -I../libvo
-I../libioaux -I../libxio  -I/usr/include -I/usr/include/lqt    -I/usr/include
-I/usr/include    -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=athlon-xp -fweb -pipe -DDCT_YUV_PRECISION=1
-MT aud_aux.lo -MD -MP -MF .deps/aud_aux.Tpo -c -o aud_aux.lo aud_aux.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT
-DMOD_PATH=\"/usr/lib/transcode\" -I.. -I../src -I../import -I../libac3
-I../avilib -I/usr/include -I../libvo -I../libioaux -I../libxio -I/usr/include
-I/usr/include/lqt -I/usr/include -I/usr/include -Wall -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=athlon-xp -fweb -pipe
-DDCT_YUV_PRECISION=1 -MT aud_aux.lo -MD -MP -MF .deps/aud_aux.Tpo -c aud_aux.c
 -fPIC -DPIC -o .libs/aud_aux.o
aud_aux.c: In function 'audio_init_ffmpeg':
aud_aux.c:364: error: 'ac3_encoder' undeclared (first use in this function)
aud_aux.c:364: error: (Each undeclared identifier is reported only once
aud_aux.c:364: error: for each function it appears in.)
aud_aux.c:365: error: 'mp2_encoder' undeclared (first use in this function)
aud_aux.c: In function 'audio_encode_mp3':
aud_aux.c:806: warning: pointer targets in passing argument 5 of
'lame_encode_buffer' differ in signedness
aud_aux.c:813: warning: pointer targets in passing argument 4 of
'lame_encode_buffer_interleaved' differ in signedness
aud_aux.c:854: warning: pointer targets in passing argument 1 of
'tc_get_mp3_header' differ in signedness
aud_aux.c: In function 'audio_close':
aud_aux.c:1063: warning: pointer targets in passing argument 2 of
'lame_encode_flush' differ in signedness
make[2]: *** [aud_aux.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/media-video/transcode-1.0.3/work/transcode-1.0.3'
make: *** [all] Error 2

Sat Apr  7 12:11:46 2007 >>> media-video/ffmpeg-0.4.9_p20070330
Sun Jul  1 17:17:17 2007 >>> media-video/ffmpeg-0.4.9_p20070616-r1
Fri Apr 20 19:08:38 2007 >>> media-video/transcode-1.0.3

It looks like the former ffmpeg version worked well.

Reproducible: Always

Steps to Reproduce:
emerge -auvDNt world after changes to USE-Flags causing a re-merge of transcode

Actual Results:  
compile breaks

Expected Results:  
compile succeeds

------- Comment #1 From Christian Schmidt 2007-07-02 19:27:24 0000 -------
Created an attachment (id=123708) [details]
Ebuild that includes patch

New ebuild for transcode-1.0.3-r1, version bump to set to ~ as the bug only
appears with ~ ffmpeg.

------- Comment #2 From Christian Schmidt 2007-07-02 19:28:46 0000 -------
Created an attachment (id=123709) [details]
Patch to fix compatibility with latest ffmpeg

The static initializers for the ac3/mp2 encoders seem to have gone. Replaced
with the structs returned from lookup.

------- Comment #3 From Christian Schmidt 2007-07-02 19:35:15 0000 -------
Created an attachment (id=123711) [details]
Fixed epatch call.

------- Comment #4 From Christian Schmidt 2007-07-02 19:36:06 0000 -------
Created an attachment (id=123713) [details]
patch for ffmpeg, corrected filename

------- Comment #5 From Jakub Moc (RETIRED) 2007-07-02 21:29:20 0000 -------

*** This bug has been marked as a duplicate of bug 183965 ***

------- Comment #6 From Alexis Ballier 2007-07-03 09:10:21 0000 -------
different issue of bug #183965

------- Comment #7 From Christian Schmidt 2007-07-03 09:16:36 0000 -------
Created an attachment (id=123744) [details]
Patch for transcode to support ~ffmpeg

So here as well: Change register_avcodec calls to avcodec_register_all call.

------- Comment #8 From Alexis Ballier 2007-07-03 21:57:37 0000 -------
commited, thanks.

------- Comment #9 From Jakub Moc (RETIRED) 2007-07-04 20:28:55 0000 -------
*** Bug 184223 has been marked as a duplicate of this bug. ***