comparison 4xm.c @ 743:af4e24d6310c libavformat

switch to native time bases
author michael
date Sat, 30 Apr 2005 21:43:59 +0000
parents 58a2da07cb18
children c5077fdab490
comparison
equal deleted inserted replaced
742:21c1ae78f041 743:af4e24d6310c
164 return AVERROR_NOMEM; 164 return AVERROR_NOMEM;
165 av_set_pts_info(st, 60, 1, fourxm->fps); 165 av_set_pts_info(st, 60, 1, fourxm->fps);
166 166
167 fourxm->video_stream_index = st->index; 167 fourxm->video_stream_index = st->index;
168 168
169 st->codec.frame_rate = fourxm->fps;
170 st->codec.frame_rate_base = 1.0;
171 st->codec.codec_type = CODEC_TYPE_VIDEO; 169 st->codec.codec_type = CODEC_TYPE_VIDEO;
172 st->codec.codec_id = CODEC_ID_4XM; 170 st->codec.codec_id = CODEC_ID_4XM;
173 st->codec.codec_tag = 0; /* no fourcc */ 171 st->codec.codec_tag = 0; /* no fourcc */
174 st->codec.width = fourxm->width; 172 st->codec.width = fourxm->width;
175 st->codec.height = fourxm->height; 173 st->codec.height = fourxm->height;