Revision fd0f45e5

View differences:

ffmpeg.c
1125 1125
            switch (ist->st->codec.codec_type) {
1126 1126
            case CODEC_TYPE_AUDIO:
1127 1127
                av_frac_init(&ist->next_pts, 
1128
                             0, 0, is->pts_num * ist->st->codec.sample_rate);
1128
                             0, 0, (uint64_t)is->pts_num * ist->st->codec.sample_rate);
1129 1129
                break;
1130 1130
            case CODEC_TYPE_VIDEO:
1131 1131
                av_frac_init(&ist->next_pts, 
1132
                             0, 0, is->pts_num * ist->st->codec.frame_rate);
1132
                             0, 0, (uint64_t)is->pts_num * ist->st->codec.frame_rate);
1133 1133
                break;
1134 1134
            default:
1135 1135
                break;
......
1275 1275
                    }
1276 1276
                    data_buf = (uint8_t *)samples;
1277 1277
		    av_frac_add(&ist->next_pts, 
1278
			        is->pts_den * data_size / (2 * ist->st->codec.channels));
1278
			        (uint64_t)is->pts_den * data_size / (2 * ist->st->codec.channels));
1279 1279
                    break;
1280 1280
                case CODEC_TYPE_VIDEO:
1281 1281
                    {
......
1300 1300
                            continue;
1301 1301
                        }
1302 1302
                        av_frac_add(&ist->next_pts, 
1303
			            is->pts_den * ist->st->codec.frame_rate_base);          
1303
			            (uint64_t)is->pts_den * ist->st->codec.frame_rate_base);          
1304 1304
                    }
1305 1305
                    break;
1306 1306
                default:

Also available in: Unified diff