summaryrefslogtreecommitdiff
path: root/libavcodec/libdiracenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-08-15 11:12:47 +0000
committerDiego Biurrun <diego@biurrun.de>2009-08-15 11:12:47 +0000
commit735a38045a67975390af6969c6c957668d364606 (patch)
tree72583b2f2814ce08be7b557a209ff9e4334dcfb4 /libavcodec/libdiracenc.c
parent7c809dc3e24a321ed0b1fc3a34442127b762f801 (diff)
Remove useless braces around if/for/while expressions.
Originally committed as revision 19648 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libdiracenc.c')
-rw-r--r--libavcodec/libdiracenc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/libdiracenc.c b/libavcodec/libdiracenc.c
index a9f8438e37..0cffc047de 100644
--- a/libavcodec/libdiracenc.c
+++ b/libavcodec/libdiracenc.c
@@ -188,25 +188,22 @@ static av_cold int libdirac_encode_init(AVCodecContext *avccontext)
avccontext->global_quality / (FF_QP2LAMBDA*10.0);
/* if it is not default bitrate then send target rate. */
if (avccontext->bit_rate >= 1000 &&
- avccontext->bit_rate != 200000) {
+ avccontext->bit_rate != 200000)
p_dirac_params->enc_ctx.enc_params.trate =
avccontext->bit_rate / 1000;
- }
} else
p_dirac_params->enc_ctx.enc_params.lossless = 1;
} else if (avccontext->bit_rate >= 1000)
p_dirac_params->enc_ctx.enc_params.trate = avccontext->bit_rate / 1000;
if ((preset > VIDEO_FORMAT_QCIF || preset < VIDEO_FORMAT_QSIF525) &&
- avccontext->bit_rate == 200000) {
+ avccontext->bit_rate == 200000)
p_dirac_params->enc_ctx.enc_params.trate = 0;
- }
- if (avccontext->flags & CODEC_FLAG_INTERLACED_ME) {
+ if (avccontext->flags & CODEC_FLAG_INTERLACED_ME)
/* all material can be coded as interlaced or progressive
* irrespective of the type of source material */
p_dirac_params->enc_ctx.enc_params.picture_coding_mode = 1;
- }
p_dirac_params->p_encoder = dirac_encoder_init (&(p_dirac_params->enc_ctx),
verbose );