Commit a30a2605 authored by michael's avatar michael

fix x11grab


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10046 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 63c174ee
......@@ -1778,7 +1778,8 @@ static int av_encode(AVFormatContext **output_files,
is = input_files[ist->file_index];
ist->pts = 0;
ist->next_pts=0;
if(input_files_ts_offset[ist->file_index] != -is->start_time)
if( input_files_ts_offset[ist->file_index] != -is->start_time
&& !(is->start_time == AV_NOPTS_VALUE && input_files_ts_offset[ist->file_index]==0))
ist->next_pts= AV_NOPTS_VALUE;
ist->is_start = 1;
}
......
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