[FFmpeg-devel] [RFC] move H.263 parser to its own file
Jason Millard
jsm174
Wed May 9 14:05:56 CEST 2007
Not sure if this is related (guess it is), but now there are new reference
issues:
gcc -L"/c/ffmpeg-05-09-07"/libavformat -L"/c/ffmpeg-05-09-07"/libavcodec
-L"/c/ffmpeg-05-09-07"/libavutil -Wl,--warn-common -L/usr/local/lib
-Wl,-rpath-link,"/c/ffmpeg-05-09-07"/libavcodec
-Wl,-rpath-link,"/c/ffmpeg-05-09-07"/libavformat
-Wl,-rpath-link,"/c/ffmpeg-05-09-07"/libavutil -g -o ffmpeg_g.exe ffmpeg.o
cmdutils.o -lavformat -lavcodec -lavutil -lws2_32 -lm -lmp3lame -lm
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0x28de):
undefined reference to `ff_msmpeg4_encode_init'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0x6f95):
undefined reference to `ff_mspel_motion'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0x97d5):
undefined reference to `ff_wmv2_add_mb'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0xc25f):
undefined reference to `ff_wmv2_encode_picture_header'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0xc271):
undefined reference to `msmpeg4_encode_picture_header'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0xf335):
undefined reference to `msmpeg4_encode_mb'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0xf358):
undefined reference to `ff_wmv2_encode_mb'
c:/ffmpeg-05-09-07/libavcodec/libavcodec.a(mpegvideo.o):mpegvideo.c:(.text+0x115af):
undefined reference to `msmpeg4_encode_ext_header'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g.exe] Error 1
-- Jason
On 5/9/07, Diego Biurrun <diego at biurrun.de> wrote:
>
> On Wed, May 09, 2007 at 02:26:48AM +0200, Aurelien Jacobs wrote:
> > On Wed, 9 May 2007 01:52:59 +0200
> > Diego Biurrun <diego at biurrun.de> wrote:
> >
> > > On Tue, May 08, 2007 at 11:29:55PM +0200, Aurelien Jacobs wrote:
> > > > On Tue, 8 May 2007 10:57:50 +0200
> > > > Diego Biurrun <diego at biurrun.de> wrote:
> > > >
> > > > > On Mon, May 07, 2007 at 12:36:49PM +0200, Michael Niedermayer
> wrote:
> > > > > >
> > > > > > On Mon, May 07, 2007 at 10:01:33AM +0200, Diego Biurrun wrote:
> > > > > > > Attached patch does $subject. It misses declaring a
> dependency on the
> > > > > > > H.263 parser for the H.263 decoder and a change to the
> Makefile, but I
> > > > > > > need to run out now. Let me know if this is the way to
> proceed or not.
> > > > > >
> > > > > > yes the way looks ok
> > > > > >
> > > > > > [...]
> > > > > > > +
> > > > > > > +int h263_find_frame_end(ParseContext *pc, const uint8_t *buf,
> int buf_size);
> > > > > >
> > > > > > ff_ prefix
> > > >
> > > > It seems to me that moving ff_h263_find_frame_end() to h263_parser.c
> wasn't a
> > > > very good idea. This function is used as well by h263dec.c as by
> h263_parser.c.
> > > > h263dec.c is compiled unconditionnaly whereas h263_parser.c is
> compiled
> > > > conditionnaly.
> > > > So IMO, ff_h263_find_frame_end() should be moved back to h263dec.c.
> > >
> > > What about fixing dependencies and conditionally compiling h263dec.cas
> > > well?
> >
> > That would be nice. The problem is that almost every video codec has a
> > dependency (direct or indirect) over some code in h263dec.c.
> > Splitting it properly and fixing dependencies seems quite hard.
> > If you want to try to do it, that's great. Else I think that moving
> > ff_h263_find_frame_end() back to h263dec.c is the right thing to do.
>
> My try has just hit HEAD. I'm sure it can still be improved, but it
> should be a start. Let me know any problems or suggestions for
> improvement you notice.
>
> Diego
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list