aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-08 11:41:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-08 11:41:29 +0100
commit9ebfe38f3873eafacff9b0933cbf9b97198ec020 (patch)
treef0d3972ac8c353dcf30838ad420e9daf03da8b98 /libavformat
parent4342b346d273366438f10a1cc665d0c2db2af469 (diff)
parent9a5ac36b69ede4563e9ecd734141b12ea3280fbc (diff)
downloadffmpeg-9ebfe38f3873eafacff9b0933cbf9b97198ec020.tar.gz
Merge commit '9a5ac36b69ede4563e9ecd734141b12ea3280fbc'
* commit '9a5ac36b69ede4563e9ecd734141b12ea3280fbc': movenc: Require samples before trying to write edts Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5fc8594ee9..8208e74c35 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2389,11 +2389,14 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
av_assert2(mov->use_editlist >= 0);
- if (mov->use_editlist)
- mov_write_edts_tag(pb, mov, track); // PSP Movies and several other cases require edts box
- else if ((track->entry && track->cluster[0].dts) || track->mode == MODE_PSP || is_clcp_track(track))
- av_log(mov->fc, AV_LOG_WARNING,
- "Not writing any edit list even though one would have been required\n");
+
+ if (track->entry) {
+ if (mov->use_editlist)
+ mov_write_edts_tag(pb, mov, track); // PSP Movies and several other cases require edts box
+ else if ((track->entry && track->cluster[0].dts) || track->mode == MODE_PSP || is_clcp_track(track))
+ av_log(mov->fc, AV_LOG_WARNING,
+ "Not writing any edit list even though one would have been required\n");
+ }
if (track->tref_tag)
mov_write_tref_tag(pb, track);