diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:12:47 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:12:47 +0000 |
commit | 735a38045a67975390af6969c6c957668d364606 (patch) | |
tree | 72583b2f2814ce08be7b557a209ff9e4334dcfb4 /libavcodec/libdiracdec.c | |
parent | 7c809dc3e24a321ed0b1fc3a34442127b762f801 (diff) | |
download | ffmpeg-735a38045a67975390af6969c6c957668d364606.tar.gz |
Remove useless braces around if/for/while expressions.
Originally committed as revision 19648 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libdiracdec.c')
-rw-r--r-- | libavcodec/libdiracdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/libdiracdec.c b/libavcodec/libdiracdec.c index d78893dbf2..7b3609c86d 100644 --- a/libavcodec/libdiracdec.c +++ b/libavcodec/libdiracdec.c @@ -55,11 +55,9 @@ static enum PixelFormat GetFfmpegChromaFormat(dirac_chroma_t dirac_pix_fmt) sizeof(ffmpeg_dirac_pixel_format_map[0]); int idx; - for (idx = 0; idx < num_formats; ++idx) { - if (ffmpeg_dirac_pixel_format_map[idx].dirac_pix_fmt == dirac_pix_fmt) { + for (idx = 0; idx < num_formats; ++idx) + if (ffmpeg_dirac_pixel_format_map[idx].dirac_pix_fmt == dirac_pix_fmt) return ffmpeg_dirac_pixel_format_map[idx].ff_pix_fmt; - } - } return PIX_FMT_NONE; } |