On Sun, 18 Aug 2013, Luca Barbato wrote:

Do not ignore them.
---
libavformat/movenc.c | 2 ++
1 file changed, 2 insertions(+)

What about "mov: Set the timescale for data streams" as subject instead?

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;
--
1.8.3.2

The patch LGTM

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

Reply via email to