comparison psxstr.c @ 837:4cf524326a1a libavformat

set timebase correctly? this thing is always 15fps?
author michael
date Sat, 13 Aug 2005 21:56:57 +0000
parents feca73904e67
children da1d5db0ce5c
comparison
equal deleted inserted replaced
836:8d9d16641fe0 837:4cf524326a1a
175 175
176 /* allocate a new AVStream */ 176 /* allocate a new AVStream */
177 st = av_new_stream(s, 0); 177 st = av_new_stream(s, 0);
178 if (!st) 178 if (!st)
179 return AVERROR_NOMEM; 179 return AVERROR_NOMEM;
180 /* set the pts reference (1 pts = 1/90000) */ 180 av_set_pts_info(st, 64, 1, 15);
181 av_set_pts_info(st, 33, 1, 90000);
182 181
183 str->channels[channel].video_stream_index = st->index; 182 str->channels[channel].video_stream_index = st->index;
184 183
185 st->codec->codec_type = CODEC_TYPE_VIDEO; 184 st->codec->codec_type = CODEC_TYPE_VIDEO;
186 st->codec->codec_id = CODEC_ID_MDEC; 185 st->codec->codec_id = CODEC_ID_MDEC;
205 204
206 /* allocate a new AVStream */ 205 /* allocate a new AVStream */
207 st = av_new_stream(s, 0); 206 st = av_new_stream(s, 0);
208 if (!st) 207 if (!st)
209 return AVERROR_NOMEM; 208 return AVERROR_NOMEM;
210 av_set_pts_info(st, 33, 1, 90000); 209 av_set_pts_info(st, 64, 128, str->channels[channel].sample_rate);
211 210
212 str->channels[channel].audio_stream_index = st->index; 211 str->channels[channel].audio_stream_index = st->index;
213 212
214 fmt = sector[0x13]; 213 fmt = sector[0x13];
215 st->codec->codec_type = CODEC_TYPE_AUDIO; 214 st->codec->codec_type = CODEC_TYPE_AUDIO;