comparison wav.c @ 567:23b915bb10f5 libavformat

set correct timebase
author michael
date Mon, 18 Oct 2004 09:43:39 +0000
parents a9e04ea89942
children d82ccc7cff1c
comparison
equal deleted inserted replaced
566:c1e54abaa87e 567:23b915bb10f5
299 if (!st) 299 if (!st)
300 return AVERROR_NOMEM; 300 return AVERROR_NOMEM;
301 301
302 get_wav_header(pb, &st->codec, size); 302 get_wav_header(pb, &st->codec, size);
303 st->need_parsing = 1; 303 st->need_parsing = 1;
304 304
305 av_set_pts_info(st, 64, 1, st->codec.sample_rate);
306
305 size = find_tag(pb, MKTAG('d', 'a', 't', 'a')); 307 size = find_tag(pb, MKTAG('d', 'a', 't', 'a'));
306 if (size < 0) 308 if (size < 0)
307 return -1; 309 return -1;
308 return 0; 310 return 0;
309 } 311 }