public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Schreckenbauer <grimlog@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] DVDStyper build error - bad conversion to enum
Date: Mon, 29 Aug 2011 19:10:47 +0200	[thread overview]
Message-ID: <4555920.NSLcKfF4gJ@pc> (raw)
In-Reply-To: <CAJoOjx-YuTTamgGsoWK5YCQvfKETFNjdJEgtE6E7C_T17BkoRw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

Hi,

Am Montag, 29. August 2011, 11:10:03 schrieb Gregory Woodbury:
> Installing dvdstyle results in an error in the mediatrc-ffmpeg.cpp module.
> 
> There is a bad int to enum conversion for AVPictureType
> 
> Ebuild log attached.

attached is a (simple) patch, that should fix that problem.
Note: I have not tested it, as DVDStyler needs a lot of deps, that are not 
installed here.

Hth,
Michael

[-- Attachment #2: fix_enum_error.patch --]
[-- Type: text/x-patch, Size: 558 bytes --]

--- DVDStyler-1.8.1/src/mediatrc_ffmpeg.cpp	2011-08-29 18:59:54.000000000 +0200
+++ DVDStyler-1.8.1-new/src/mediatrc_ffmpeg.cpp	2011-08-29 19:00:45.000000000 +0200
@@ -2242,7 +2242,7 @@
 			} else
 				big_picture.quality = (int) ost->st->quality;
 			if (!me_threshold)
-				big_picture.pict_type = 0;
+				big_picture.pict_type = (AVPictureType)0;
 //            big_picture.pts = AV_NOPTS_VALUE;
 			big_picture.pts= ost->sync_opts;
 //            big_picture.pts= av_rescale(ost->sync_opts, AV_TIME_BASE*(int64_t)enc->time_base.num, enc->time_base.den);

      reply	other threads:[~2011-08-29 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29 15:10 [gentoo-user] DVDStyper build error - bad conversion to enum Gregory Woodbury
2011-08-29 17:10 ` Michael Schreckenbauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4555920.NSLcKfF4gJ@pc \
    --to=grimlog@gmx.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox