diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-25 14:41:06 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-25 14:41:06 +0000 |
commit | f62c025a5ee898cdaed8f48d2c0ddfd89ac65f16 (patch) | |
tree | 65677467ef83534676ac73bd05883ce48ffb9582 /ffmpeg.c | |
parent | 853a0fcccedb2c66cd7596d4f22f7550d0545686 (diff) | |
download | ffmpeg-f62c025a5ee898cdaed8f48d2c0ddfd89ac65f16.tar.gz |
Use X ? Y : Z construct, simplify.
Originally committed as revision 24496 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1290,10 +1290,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; if(!me_threshold) big_picture.pict_type = 0; // big_picture.pts = AV_NOPTS_VALUE; |