summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/utils.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 3ba4ae4123..c52f39e1b7 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4590,14 +4590,12 @@ AVProgram *av_new_program(AVFormatContext *ac, int id)
dynarray_add(&ac->programs, &ac->nb_programs, program);
program->discard = AVDISCARD_NONE;
program->pmt_version = -1;
+ program->id = id;
+ program->pts_wrap_reference = AV_NOPTS_VALUE;
+ program->pts_wrap_behavior = AV_PTS_WRAP_IGNORE;
+ program->start_time =
+ program->end_time = AV_NOPTS_VALUE;
}
- program->id = id;
- program->pts_wrap_reference = AV_NOPTS_VALUE;
- program->pts_wrap_behavior = AV_PTS_WRAP_IGNORE;
-
- program->start_time =
- program->end_time = AV_NOPTS_VALUE;
-
return program;
}