Browse Source

fix x11grab

Originally committed as revision 10046 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
de2aeaef02
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffmpeg.c

+ 2
- 1
ffmpeg.c View File

@@ -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;
}


Loading…
Cancel
Save