annotate libmpdemux/demux_film.c @ 4264:689531ade0fb

added FLAG_EQUALIZER
author alex
date Sat, 19 Jan 2002 18:41:50 +0000
parents 63baf6de03e1
children 5e1221d4655e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
1 /*
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
2 FILM file parser for the MPlayer program
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
3 by Mike Melanson
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
4 */
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
5
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
6 #include <stdio.h>
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
7 #include <stdlib.h>
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
8 #include <unistd.h>
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
9
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
10 #include "config.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
11 #include "mp_msg.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
12 #include "help_mp.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
13
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
14 #include "stream.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
15 #include "demuxer.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
16 #include "stheader.h"
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
17
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
18 // chunk types found in a FILM file
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
19 #define CHUNK_FILM mmioFOURCC('F', 'I', 'L', 'M')
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
20 #define CHUNK_FDSC mmioFOURCC('F', 'D', 'S', 'C')
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
21 #define CHUNK_STAB mmioFOURCC('S', 'T', 'A', 'B')
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
22
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
23 typedef struct _film_frames_t {
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
24 int num_frames;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
25 int current_frame;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
26 off_t *filepos;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
27 unsigned int *frame_size;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
28 unsigned int *flags1;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
29 unsigned int *flags2;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
30 } film_frames_t;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
31
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
32 void demux_seek_film(demuxer_t *demuxer,float rel_seek_secs,int flags){
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
33 film_frames_t *frames = (film_frames_t *)demuxer->priv;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
34 sh_video_t *sh_video = demuxer->video->sh;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
35 int newpos=(flags&1)?0:frames->current_frame;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
36 if(flags&2){
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
37 // float 0..1
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
38 newpos+=rel_seek_secs*frames->num_frames;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
39 } else {
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
40 // secs
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
41 newpos+=rel_seek_secs*sh_video->fps;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
42 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
43 if(newpos<0) newpos=0; else
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
44 if(newpos>frames->num_frames) newpos=frames->num_frames;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
45 frames->current_frame=newpos;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
46 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
47
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
48 // return value:
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
49 // 0 = EOF or no stream found
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
50 // 1 = successfully read a packet
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
51 int demux_film_fill_buffer(demuxer_t *demuxer){
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
52 film_frames_t *frames = (film_frames_t *)demuxer->priv;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
53 sh_video_t *sh_video = demuxer->video->sh;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
54
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
55 // see if the end has been reached
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
56 if (frames->current_frame >= frames->num_frames)
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
57 return 0;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
58
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
59 // fetch the frame from the file
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
60 // first, position the file properly since ds_read_packet() doesn't
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
61 // seem to do it, even though it takes a file offset as a parameter
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
62 stream_seek(demuxer->stream, frames->filepos[frames->current_frame]);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
63 ds_read_packet(demuxer->video,
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
64 demuxer->stream,
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
65 frames->frame_size[frames->current_frame],
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
66 frames->current_frame/sh_video->fps,
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
67 frames->filepos[frames->current_frame],
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
68 0 /* what flags? -> demuxer.h (alex) */
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
69 );
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
70
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
71 // get the next frame ready
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
72 frames->current_frame++;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
73
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
74 return 1;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
75 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
76
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
77 demuxer_t* demux_open_film(demuxer_t* demuxer){
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
78 sh_video_t *sh_video = NULL;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
79 film_frames_t *frames = (film_frames_t *)malloc(sizeof(film_frames_t));
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
80 int header_size;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
81 unsigned int chunk_type;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
82 unsigned int chunk_size;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
83 int i;
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
84 int frame_number;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
85
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
86 int audio_channels;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
87 int audio_bits;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
88 int audio_frequency;
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
89
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
90 // go back to the beginning
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
91 stream_reset(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
92 stream_seek(demuxer->stream, 0);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
93
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
94 // read the master chunk type
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
95 chunk_type = stream_read_fourcc(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
96 // validate the chunk type
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
97 if (chunk_type != CHUNK_FILM)
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
98 {
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
99 mp_msg(MSGT_DEMUX, MSGL_ERR, "Not a FILM file\n");
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
100 return(NULL);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
101 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
102
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
103 // get the header size, which implicitly points past the header and
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
104 // to the start of the data
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
105 header_size = stream_read_dword(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
106 demuxer->movi_start = header_size;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
107 demuxer->movi_end = demuxer->stream->end_pos;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
108 header_size -= 16;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
109
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
110 // skip to where the next chunk should be
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
111 stream_skip(demuxer->stream, 8);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
112
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
113 // create a new video stream header
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
114 sh_video = new_sh_video(demuxer, 0);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
115
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
116 // make sure the demuxer knows about the new video stream header
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
117 demuxer->video->sh = sh_video;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
118
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
119 // make sure that the video demuxer stream header knows about its
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
120 // parent video demuxer stream, or else
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
121 // video_read_properties() will choke
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
122 sh_video->ds = demuxer->video;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
123
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
124 // traverse through the header
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
125 while (header_size > 0)
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
126 {
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
127 // fetch the chunk type and size
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
128 chunk_type = stream_read_fourcc(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
129 chunk_size = stream_read_dword(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
130 header_size -= chunk_size;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
131
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
132 switch (chunk_type)
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
133 {
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
134 case CHUNK_FDSC:
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
135 printf ("parsing FDSC chunk\n");
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
136 // fetch the video codec fourcc, height, then width
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
137 sh_video->format = stream_read_fourcc(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
138 sh_video->disp_h = stream_read_dword(demuxer->stream);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
139 sh_video->disp_w = stream_read_dword(demuxer->stream);
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
140 sh_video->fps = stream_read_char(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
141 sh_video->frametime = 1/sh_video->fps;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
142 printf (" FILM video: %d x %d, %f fps\n", sh_video->disp_w,
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
143 sh_video->disp_h, sh_video->fps);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
144
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
145 // temporary: These will eventually go directly into an audio structure
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
146 // of some sort
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
147 audio_channels = stream_read_char(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
148 audio_bits = stream_read_char(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
149 stream_skip(demuxer->stream, 1); // skip unknown byte
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
150 audio_frequency = stream_read_word(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
151 printf (" FILM audio: %d channels, %d bits, %d Hz\n",
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
152 audio_channels, audio_bits, audio_frequency);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
153
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
154 stream_skip(demuxer->stream, 6);
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
155 break;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
156
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
157 case CHUNK_STAB:
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
158 printf ("parsing STAB chunk\n");
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
159 // skip unknown dword
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
160 stream_skip(demuxer->stream, 4);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
161
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
162 // fetch the number of frames
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
163 frames->num_frames = stream_read_dword(demuxer->stream);
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
164 frames->current_frame = 0;
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
165
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
166 // allocate enough entries for the indices
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
167 frames->filepos = (off_t *)malloc(frames->num_frames * sizeof(off_t));
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
168 frames->frame_size = (int *)malloc(frames->num_frames * sizeof(int));
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
169 frames->flags1 = (int *)malloc(frames->num_frames * sizeof(int));
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
170 frames->flags2 = (int *)malloc(frames->num_frames * sizeof(int));
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
171
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
172 // build the frame index
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
173 frame_number = 0;
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
174 for (i = 0; i < frames->num_frames; i++)
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
175 {
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
176 if (frames->flags1[i] == 0)
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
177 {
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
178 frames->filepos[frame_number] = demuxer->movi_start + stream_read_dword(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
179 frames->frame_size[frame_number] = stream_read_dword(demuxer->stream) - 8;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
180 frames->flags1[frame_number] = stream_read_dword(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
181 frames->flags2[frame_number] = stream_read_dword(demuxer->stream);
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
182 frame_number++;
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
183 }
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
184 }
4226
63baf6de03e1 made a little more headway but it still doesn't work properly
melanson
parents: 4189
diff changeset
185 frames->num_frames = frame_number;
4189
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
186 break;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
187
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
188 default:
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
189 mp_msg(MSGT_DEMUX, MSGL_ERR, "Unrecognized FILM header chunk: %08X\n",
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
190 chunk_type);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
191 return(NULL);
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
192 break;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
193 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
194 }
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
195
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
196 // hard code the speed for now
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
197 sh_video->fps = 1;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
198 sh_video->frametime = 1;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
199
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
200 demuxer->priv = frames;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
201
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
202 return demuxer;
6871d97e4261 initial support for FILM file demuxing
melanson
parents:
diff changeset
203 }