summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerenc.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/libschroedingerenc.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/libschroedingerenc.c')
-rw-r--r--libavcodec/libschroedingerenc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c
index aadf061ad3..f8fea16150 100644
--- a/libavcodec/libschroedingerenc.c
+++ b/libavcodec/libschroedingerenc.c
@@ -150,10 +150,9 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
"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 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
}
- 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 @@ static int libschroedinger_encode_frame(AVCodecContext *avccontext,
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. */