|
@@ -587,7 +587,7 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
|
|
av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n",
|
|
av_bprintf(&buf_script, "stream_%d_%d_q=%.1f\n",
|
|
ost->file->index, ost->index, q);
|
|
ost->file->index, ost->index, q);
|
|
}
|
|
}
|
|
- if (!vid && ost->type == AVMEDIA_TYPE_VIDEO && ost->filter) {
|
|
|
|
|
|
+ if (!vid && ost->type == AVMEDIA_TYPE_VIDEO) {
|
|
float fps;
|
|
float fps;
|
|
uint64_t frame_number = atomic_load(&ost->packets_written);
|
|
uint64_t frame_number = atomic_load(&ost->packets_written);
|
|
|
|
|
|
@@ -601,8 +601,10 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
|
|
if (is_last_report)
|
|
if (is_last_report)
|
|
av_bprintf(&buf, "L");
|
|
av_bprintf(&buf, "L");
|
|
|
|
|
|
- nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup);
|
|
|
|
- nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop);
|
|
|
|
|
|
+ if (ost->filter) {
|
|
|
|
+ nb_frames_dup = atomic_load(&ost->filter->nb_frames_dup);
|
|
|
|
+ nb_frames_drop = atomic_load(&ost->filter->nb_frames_drop);
|
|
|
|
+ }
|
|
|
|
|
|
vid = 1;
|
|
vid = 1;
|
|
}
|
|
}
|