comparison audio.c @ 462:b69898ffc92a libavformat

move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
author michael
date Fri, 21 May 2004 20:43:21 +0000
parents 845f9de2c883
children 60f897e8dd2d
comparison
equal deleted inserted replaced
461:63540e5504f7 462:b69898ffc92a
228 st->codec.codec_type = CODEC_TYPE_AUDIO; 228 st->codec.codec_type = CODEC_TYPE_AUDIO;
229 st->codec.codec_id = s->codec_id; 229 st->codec.codec_id = s->codec_id;
230 st->codec.sample_rate = s->sample_rate; 230 st->codec.sample_rate = s->sample_rate;
231 st->codec.channels = s->channels; 231 st->codec.channels = s->channels;
232 232
233 av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */ 233 av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */
234 return 0; 234 return 0;
235 } 235 }
236 236
237 static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt) 237 static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
238 { 238 {