1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/mov: Simplify get_stream_info_time()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2018-12-07 21:38:25 +01:00
parent 68e011e410
commit 21f4b456f1

View File

@ -1234,16 +1234,12 @@ static int search_frag_moof_offset(MOVFragmentIndex *frag_index, int64_t offset)
static int64_t get_stream_info_time(MOVFragmentStreamInfo * frag_stream_info)
{
if (frag_stream_info) {
av_assert0(frag_stream_info);
if (frag_stream_info->sidx_pts != AV_NOPTS_VALUE)
return frag_stream_info->sidx_pts;
if (frag_stream_info->first_tfra_pts != AV_NOPTS_VALUE)
return frag_stream_info->first_tfra_pts;
if (frag_stream_info->tfdt_dts != AV_NOPTS_VALUE)
return frag_stream_info->tfdt_dts;
}
return AV_NOPTS_VALUE;
}
static int64_t get_frag_time(MOVFragmentIndex *frag_index,