Mercurial > libavcodec.hg
diff libschroedingerdec.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 | 965220ebc611 |
line wrap: on
line diff
--- a/libschroedingerdec.c Sat Aug 15 11:02:50 2009 +0000 +++ b/libschroedingerdec.c Sat Aug 15 11:12:47 2009 +0000 @@ -127,11 +127,9 @@ 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 @@ 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 @@ /* 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;