summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerdec.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/libschroedingerdec.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/libschroedingerdec.c')
-rw-r--r--libavcodec/libschroedingerdec.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c
index e1c1844f82..d086721bcf 100644
--- a/libavcodec/libschroedingerdec.c
+++ b/libavcodec/libschroedingerdec.c
@@ -127,11 +127,9 @@ static enum PixelFormat GetFfmpegChromaFormat(SchroChromaFormat schro_pix_fmt)
sizeof(ffmpeg_schro_pixel_format_map[0]);
int idx;
- for (idx = 0; idx < num_formats; ++idx) {
- if (ffmpeg_schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt) {
+ for (idx = 0; idx < num_formats; ++idx)
+ if (ffmpeg_schro_pixel_format_map[idx].schro_pix_fmt == schro_pix_fmt)
return ffmpeg_schro_pixel_format_map[idx].ff_pix_fmt;
- }
- }
return PIX_FMT_NONE;
}
@@ -197,12 +195,10 @@ static void libschroedinger_handle_first_access_unit(AVCodecContext *avccontext)
avccontext->time_base.num = p_schro_params->format->frame_rate_denominator;
if (!p_schro_params->dec_pic.data[0])
- {
avpicture_alloc(&p_schro_params->dec_pic,
avccontext->pix_fmt,
avccontext->width,
avccontext->height);
- }
}
static int libschroedinger_decode_frame(AVCodecContext *avccontext,
@@ -277,11 +273,10 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
/* Pull a frame out of the decoder. */
frame = schro_decoder_pull (decoder);
- if (frame) {
+ if (frame)
ff_dirac_schro_queue_push_back(
&p_schro_params->dec_frame_queue,
frame);
- }
break;
case SCHRO_DECODER_EOS:
go = 0;