[FFmpeg-devel] [PATCH 3/5] Use X ? Y : Z construct, simplify.

Michael Niedermayer michaelni
Sun Jul 25 15:59:05 CEST 2010


On Sun, Jul 25, 2010 at 12:44:15PM +0200, Stefano Sabatini wrote:
> ---
>  ffmpeg.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 105104f..77f6270 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -1291,10 +1291,7 @@ static void do_video_out(AVFormatContext *s,
>  
>              /* handles sameq here. This is not correct because it may
>                 not be a global option */
> -            if (same_quality) {
> -                big_picture.quality = ist->st->quality;
> -            }else
> -                big_picture.quality = ost->st->quality;
> +            big_picture.quality = same_quality ? ist->st->quality : ost->st->quality;

fine

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100725/4c94e28b/attachment.pgp>



More information about the ffmpeg-devel mailing list