> I'm running Slackware 11.0.0 and am trying to compile mjpegtools-1.8.0 source 
> code tree obtained from SF.
:
> > configure:   - Quicktime playback/recording  : true
:
> > lav_io.c: In function `lav_fileno':
> > lav_io.c:1370: error: dereferencing pointer to incomplete type
> > make[2]: *** [liblavfile_la-lav_io.lo] Error 1
:
> Well what do I do basically?

You would have a relatively recent version of libquicktime on your system,
right?  Somewhere between version 0.9.7 and 0.9.10 the API changed slightly
to prevent direct access to fields in the quicktime_t structure.  Therefore,
since mjpegtools 1.8.0 was released before this API change the contents of
line 1370 are now not valid because the *quicktime_t pointer is being
dereferenced:

  res = fileno(((quicktime_t *)lav_file->qt_fd)->stream);

The fix is to change this line to something like

  res = lqt_fileno(lav_file->qt_fd);

I suspect this has already been done in svn since libquicktime 0.9.10
has been out for quite some time now.

On a related note, does anyone know why the qt_fd field of lav_file_t is a
void* rather than a quicktime_t*, especially given that avi_fd is an 
avi_t* ?  Is it reused for other purposes (which seems odd since a separate
avi_t* field was created for avifile interaction).  Why can't we make it
a quicktime_t* ?

Regards
  jonathan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to