diff options
author | James Almer <jamrial@gmail.com> | 2020-02-16 14:42:00 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-02-16 14:42:00 -0300 |
commit | 17ece3f74531cca47a8b90f905f5160fc3fa6ac0 (patch) | |
tree | a187f84a2ca1df7c30a7173c3b5ed6aff9721495 /libavformat/dashenc.c | |
parent | 29be3de926e9d94b64de549fb12b7c57fe881cda (diff) | |
download | ffmpeg-17ece3f74531cca47a8b90f905f5160fc3fa6ac0.tar.gz |
avformat/dashenc: always set coding_dependency to 1 if a parser isn't used
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 00fb23f9b0..eb95bcf679 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1518,8 +1518,7 @@ static int dash_init(AVFormatContext *s) return ret; // We only want to parse frame headers os->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES; - } else - os->coding_dependency = 1; + } if (c->single_file) { if (os->single_file_name) @@ -1573,6 +1572,9 @@ static int dash_init(AVFormatContext *s) av_log(s, AV_LOG_WARNING, "frag_type set to P-Frame reordering, but no parser found for stream %d\n", i); os->frag_type = c->streaming ? FRAG_TYPE_EVERY_FRAME : FRAG_TYPE_NONE; } + if (os->frag_type != FRAG_TYPE_PFRAMES && as->trick_idx < 0) + // Set this now if a parser isn't used + os->coding_dependency = 1; if (os->segment_type == SEGMENT_TYPE_MP4) { if (c->streaming) |