From: Bernhard Übelacker <[email protected]>

This avoids a segfault in avconv_opt.c:opt_target when trying to
determining the norm.

A workaround is to specify the norm as prefix to the target (instead
"-target dvd" use "-target pal-dvd").
---
 avconv_opt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/avconv_opt.c b/avconv_opt.c
index f8c5245..6933eb1 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -1759,6 +1759,8 @@ static int opt_target(void *optctx, const char *opt, 
const char *arg)
                     AVCodecContext *c = input_files[j]->ctx->streams[i]->codec;
                     if (c->codec_type != AVMEDIA_TYPE_VIDEO)
                         continue;
+                    if (!c->time_base.num)
+                        continue;
                     fr = c->time_base.den * 1000 / c->time_base.num;
                     if (fr == 25000) {
                         norm = PAL;
-- 
1.9.1

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

Reply via email to