Mercurial > libavformat.hg
comparison mov.c @ 3082:2879ea685e81 libavformat
rescale frame size, fix i.3g2
author | bcoudurier |
---|---|
date | Tue, 26 Feb 2008 14:36:49 +0000 |
parents | e9f7c2764298 |
children | 100182d3aefe |
comparison
equal
deleted
inserted
replaced
3081:e9f7c2764298 | 3082:2879ea685e81 |
---|---|
1441 if(!sc->time_scale) | 1441 if(!sc->time_scale) |
1442 sc->time_scale= mov->time_scale; | 1442 sc->time_scale= mov->time_scale; |
1443 av_set_pts_info(st, 64, sc->time_rate, sc->time_scale); | 1443 av_set_pts_info(st, 64, sc->time_rate, sc->time_scale); |
1444 | 1444 |
1445 if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1) | 1445 if (st->codec->codec_type == CODEC_TYPE_AUDIO && sc->stts_count == 1) |
1446 st->codec->frame_size = sc->stts_data[0].duration; | 1446 st->codec->frame_size = av_rescale(sc->time_rate, st->codec->sample_rate, sc->time_scale); |
1447 | 1447 |
1448 if(st->duration != AV_NOPTS_VALUE){ | 1448 if(st->duration != AV_NOPTS_VALUE){ |
1449 assert(st->duration % sc->time_rate == 0); | 1449 assert(st->duration % sc->time_rate == 0); |
1450 st->duration /= sc->time_rate; | 1450 st->duration /= sc->time_rate; |
1451 } | 1451 } |