build with ffmpeg version > 59.0.100

This commit is contained in:
Jacek Jendrzej
2021-08-28 15:16:33 +02:00
parent 10274e4606
commit 4eb8165387
6 changed files with 30 additions and 5 deletions

View File

@@ -1829,7 +1829,9 @@ int32_t container_ffmpeg_init_av_context(Context_t *context, char *filename, uin
}
if (avContextTab[AVIdx] != NULL)
{
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,0,100)
avContextTab[AVIdx]->iformat->flags |= AVFMT_SEEK_TO_PTS;
#endif
avContextTab[AVIdx]->flags = AVFMT_FLAG_GENPTS;
}
printf("minimal Probe: %d\n", context->playback->noprobe);