Commit 4f82be7a authored by michael's avatar michael

set a more reasonable start_time if the first timestamps are AV_NOPTS_VALUE


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9918 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c184699e
...@@ -608,6 +608,9 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, int6 ...@@ -608,6 +608,9 @@ static void update_initial_timestamps(AVFormatContext *s, int stream_index, int6
if(pktl->pkt.dts != AV_NOPTS_VALUE) if(pktl->pkt.dts != AV_NOPTS_VALUE)
pktl->pkt.dts += st->first_dts; pktl->pkt.dts += st->first_dts;
if(st->start_time == AV_NOPTS_VALUE && pktl->pkt.pts != AV_NOPTS_VALUE)
st->start_time= pktl->pkt.pts;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment