Module: libav
Branch: master
Commit: 39523030108815242178ac5e209c83070bd1baef

Author:    Luca Barbato <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Mon Aug 19 17:18:21 2013 +0200

mov: Set the timescale for data streams

Data streams have a defined timebase, do not ignore it.

---

 libavformat/movenc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index d3aa3db..b41261c 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3126,6 +3126,8 @@ static int mov_write_header(AVFormatContext *s)
             }
         } else if (st->codec->codec_type == AVMEDIA_TYPE_SUBTITLE) {
             track->timescale = st->codec->time_base.den;
+        } else if (st->codec->codec_type == AVMEDIA_TYPE_DATA) {
+            track->timescale = st->codec->time_base.den;
         }
         if (!track->height)
             track->height = st->codec->height;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to