summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-12 16:28:24 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-12 16:28:24 +0000
commit87017bada05b729c5c981178e6a02f47834c73b3 (patch)
tree956d15fcc5661052992186c317cbbf403760b3dd /ffmpeg.c
parent1677155df8ee2dbf6c99738b289e27c2237506bd (diff)
10l (rescaling AV_NOPTS_VALUE)
Originally committed as revision 4227 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 604eb15fae..bd4d2f5560 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1782,7 +1782,7 @@ static int av_encode(AVFormatContext **output_files,
is = input_files[ist->file_index];
ist->pts = 0;
ist->next_pts = av_rescale_q(ist->st->start_time, ist->st->time_base, AV_TIME_BASE_Q);
- if(ist->next_pts == AV_NOPTS_VALUE)
+ if(ist->st->start_time == AV_NOPTS_VALUE)
ist->next_pts=0;
if(input_files_ts_offset[ist->file_index])
ist->next_pts= AV_NOPTS_VALUE;