[FFmpeg-cvslog] Fix writing first audio Cues in dash mode.
Frank Galligan
git at videolan.org
Thu Oct 9 22:07:50 CEST 2014
ffmpeg | branch: master | Frank Galligan <frankgalligan at gmail.com> | Thu Oct 9 08:28:00 2014 -0700| [241b306b1eaa1be843e496653ed8e03b25dbe118] | committer: Michael Niedermayer
Fix writing first audio Cues in dash mode.
In dahsmode Matroska is not writing the first Cluster for every
audio stream in the Cues element.
Signed-off-by: Frank Galligan <frankgalligan at gmail.com>
Reviewed-by: Vignesh Venkatasubramanian <vigneshv at google.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=241b306b1eaa1be843e496653ed8e03b25dbe118
---
libavformat/matroskaenc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 4af2d6e..00a0c18 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1770,7 +1770,8 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
// on seeing key frames.
start_new_cluster = keyframe;
} else if (mkv->is_dash && codec_type == AVMEDIA_TYPE_AUDIO &&
- cluster_time > mkv->cluster_time_limit) {
+ (mkv->cluster_pos == -1 ||
+ cluster_time > mkv->cluster_time_limit)) {
// For DASH audio, we create a Cluster based on cluster_time_limit
start_new_cluster = 1;
} else if (!mkv->is_dash &&
More information about the ffmpeg-cvslog
mailing list