annotate loader/qtx/list.c @ 16718:044260623695

makes demux_lavf (-demuxer 35) use the framerate specified in the container if it's set and only fall back to the codec framerate if the former is not set. This solves the issue of some avi's playing at 30000/1 fps instead of the correct framerate. Patch by Ivo < ivop AH euronet POIS nl > Original thread: Date: Sep 25, 2005 12:34 AM Subject: [MPlayer-dev-eng] [PATCH] make demux_lavf use container framerate
author gpoirier
date Mon, 10 Oct 2005 05:45:38 +0000
parents fc9ccaa09006
children e60c8c7399d2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
1 /* to compile:
5210
ba800cb05b94 comments on compiling
arpi
parents: 5209
diff changeset
2 edit ../win32.c, change the #if 0 to 1 at line 1326 to enabel quicktime fix!
ba800cb05b94 comments on compiling
arpi
parents: 5209
diff changeset
3 (cd ..;make distclean;make)
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
4 gcc -o list list.c ../libloader.a -lpthread -ldl -lm -ggdb ../../cpudetect.o
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
5 */
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
6
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
7 #include <stdio.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
8 #include <stdlib.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
9 #include <string.h>
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
10
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
11 #include "qtxsdk/components.h"
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
12 #include "qtxsdk/select.h"
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
13
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
14 char* get_path(char* x){ return strdup(x);}
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
15 void* LoadLibraryA(char* name);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
16 void* GetProcAddress(void* handle,char* func);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
17
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
18 #define __stdcall __attribute__((__stdcall__))
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
19 #define __cdecl __attribute__((__cdecl__))
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
20 #define APIENTRY
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
21
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
22 typedef long OSErr;
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
23
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
24 int main(int argc, char *argv[]){
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
25 void *handler;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
26 ComponentDescription desc;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
27 Component (*FindNextComponent)(Component prev,ComponentDescription* desc);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
28 long (*CountComponents)(ComponentDescription* desc);
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
29 OSErr (*InitializeQTML)(long flags);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
30 OSErr (*EnterMovies)(void);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
31 OSErr ret;
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
32
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
33 Setup_LDT_Keeper();
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
34 handler = LoadLibraryA("/usr/lib/win32/qtmlClient.dll");
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
35 printf("***************************\n");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
36 InitializeQTML = 0x1000c870; //GetProcAddress(handler, "InitializeQTML");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
37 EnterMovies = 0x10003ac0; //GetProcAddress(handler, "EnterMovies");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
38 FindNextComponent = 0x1000d5f0; //GetProcAddress(handler, "FindNextComponent");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
39 CountComponents = 0x1000d5d0; //GetProcAddress(handler, "CountComponents");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
40 // = GetProcAddress(handler, "");
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
41 printf("handler: %p, funcs: %p %p %p, %p\n", handler, InitializeQTML, EnterMovies, FindNextComponent,CountComponents);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
42
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
43 ret=InitializeQTML(0);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
44 printf("InitializeQTML->%d\n",ret);
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
45 ret=EnterMovies();
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
46 printf("EnterMovies->%d\n",ret);
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
47
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
48 memset(&desc,0,sizeof(desc));
5211
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
49 desc.componentType= (((unsigned char)'S')<<24)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
50 (((unsigned char)'V')<<16)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
51 (((unsigned char)'Q')<<8)|
fc9ccaa09006 InitializeQTML(0) added
arpi
parents: 5210
diff changeset
52 (((unsigned char)'5'));
5209
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
53 desc.componentSubType=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
54 desc.componentManufacturer=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
55 desc.componentFlags=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
56 desc.componentFlagsMask=0;
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
57
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
58 printf("Count = %d\n",CountComponents(&desc));
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
59
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
60 Restore_LDT_Keeper();
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
61 exit(0);
591e470e805b simple sample proggy, using qtmlClient.dll to access QT components
arpi
parents:
diff changeset
62 }