[MPlayer-dev-eng] make test fails in libmpdemux

Adam Beguelin adamb90 at yahoo.com
Tue Nov 30 03:24:14 CET 2004


'make test' in libmpdemux seems to fail.  the cvs log shows it's not
been updated in quite some time.

are there any examples of stand alone usages of libmpdemux?  that is
just a program that calls open_stream() and demux_open()?  

  adam

PS Here's the kind of thing I'm talking about...

#define NULL -1

#include "libmpdemux/stream.h"
#include "libmpdemux/demuxer.h"
#include "libmpdemux/stheader.h"

static stream_t *stream=NULL;
static demuxer_t *demuxer=NULL;

int main(int argc, char* argv[])
{
  char* filename="foo.avi";
  int file_format=DEMUXER_TYPE_UNKNOWN;
  int n;

  int audio_id=-1;
  int video_id=-1;
  int dvdsub_id=-1;
  int vobsub_id=-1;

  stream=open_stream(filename,0,&file_format);
  if (!stream)
    return 0;

  // audio_id only used for libdvdread?

  demuxer=demux_open(stream, file_format, audio_id, video_id,
dvdsub_id, filename);

  char **info = demuxer->info;
  if (!info)
    return 0;

  for (n = 0; info[2*n] != NULL; n++) {
    printf(" %s %s\n", info[2*n], info[2*n+1]);
  }

}




More information about the MPlayer-dev-eng mailing list