frame_size vs. frame_size*channels bug
Originally committed as revision 11107 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bb6cc730e5
commit
1c715415e3
2
ffmpeg.c
2
ffmpeg.c
@ -1118,7 +1118,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
|||||||
switch(ist->st->codec->codec_type) {
|
switch(ist->st->codec->codec_type) {
|
||||||
case CODEC_TYPE_AUDIO:
|
case CODEC_TYPE_AUDIO:
|
||||||
ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
|
ist->next_pts += ((int64_t)AV_TIME_BASE * ist->st->codec->frame_size) /
|
||||||
(ist->st->codec->sample_rate * ist->st->codec->channels);
|
ist->st->codec->sample_rate;
|
||||||
break;
|
break;
|
||||||
case CODEC_TYPE_VIDEO:
|
case CODEC_TYPE_VIDEO:
|
||||||
if (ist->st->codec->time_base.num != 0) {
|
if (ist->st->codec->time_base.num != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user