Revision 34583e1b

View differences:

ffmpeg.c
1261 1261
                        goto discard_packet;
1262 1262
                    }
1263 1263
                    if (ist->st->codec->time_base.num != 0) {
1264
                        int ticks= ist->st->parser ? ist->st->parser->repeat_pict+1 : 1;
1264 1265
                        ist->next_pts += ((int64_t)AV_TIME_BASE *
1265
                                          ist->st->codec->time_base.num) /
1266
                                          ist->st->codec->time_base.num * ticks) /
1266 1267
                            ist->st->codec->time_base.den;
1267 1268
                    }
1268 1269
                    len = 0;
......
1289 1290
                break;
1290 1291
            case CODEC_TYPE_VIDEO:
1291 1292
                if (ist->st->codec->time_base.num != 0) {
1293
                    int ticks= ist->st->parser ? ist->st->parser->repeat_pict+1 : 1;
1292 1294
                    ist->next_pts += ((int64_t)AV_TIME_BASE *
1293
                                      ist->st->codec->time_base.num) /
1295
                                      ist->st->codec->time_base.num * ticks) /
1294 1296
                        ist->st->codec->time_base.den;
1295 1297
                }
1296 1298
                break;

Also available in: Unified diff