Mercurial > libavcodec.hg
diff libschroedingerenc.c @ 10056:646065f63290 libavcodec
Remove useless braces around if/for/while expressions.
author | diego |
---|---|
date | Sat, 15 Aug 2009 11:12:47 +0000 |
parents | fdb318d12314 |
children | d18468c5fee0 |
line wrap: on
line diff
--- a/libschroedingerenc.c Sat Aug 15 11:02:50 2009 +0000 +++ b/libschroedingerenc.c Sat Aug 15 11:12:47 2009 +0000 @@ -150,10 +150,9 @@ "gop_structure", SCHRO_ENCODER_GOP_INTRA_ONLY); - if (avccontext->coder_type == FF_CODER_TYPE_VLC) { + if (avccontext->coder_type == FF_CODER_TYPE_VLC) schro_encoder_setting_set_double (p_schro_params->encoder, "enable_noarith", 1); - } } else { schro_encoder_setting_set_double (p_schro_params->encoder, @@ -194,12 +193,11 @@ } - 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. */ schro_encoder_setting_set_double (p_schro_params->encoder, "interlaced_coding", 1); - } /* FIXME: Signal range hardcoded to 8-bit data until both libschroedinger * and libdirac support other bit-depth data. */ @@ -324,9 +322,8 @@ p_frame_output->size = p_schro_params->enc_buf_size; p_frame_output->p_encbuf = p_schro_params->enc_buf; if (SCHRO_PARSE_CODE_IS_INTRA(parse_code) && - SCHRO_PARSE_CODE_IS_REFERENCE(parse_code)) { + SCHRO_PARSE_CODE_IS_REFERENCE(parse_code)) p_frame_output->key_frame = 1; - } /* Parse the coded frame number from the bitstream. Bytes 14 * through 17 represesent the frame number. */