avformat/pva: Check for EOF before retrying in read_part_of_packet()
[ffmpeg.git] / libavfilter / dualinput.c
index ea2007f..1a078a2 100644 (file)
@@ -32,7 +32,7 @@ static int process_frame(FFFrameSync *fs)
         return ret;
     }
     av_assert0(mainpic);
-    mainpic->pts = av_rescale_q(mainpic->pts, s->fs.time_base, ctx->outputs[0]->time_base);
+    mainpic->pts = av_rescale_q(s->fs.pts, s->fs.time_base, ctx->outputs[0]->time_base);
     if (secondpic && !ctx->is_disabled)
         mainpic = s->process(ctx, mainpic, secondpic);
     ret = ff_filter_frame(ctx->outputs[0], mainpic);