diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:32:11 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:32:11 +0000 |
commit | c64380009d7765cafc754f7084abde497638fdd3 (patch) | |
tree | 5ec286fcb9c9c7ab9e91731c87c213b7fa058afa | |
parent | e6cb49bfa99f8700e22334330252c3222c5e40b0 (diff) | |
download | ffmpeg-c64380009d7765cafc754f7084abde497638fdd3.tar.gz |
Drop some more useless braces around if/for constructs.
Originally committed as revision 19651 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/libdiracenc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/libdiracenc.c b/libavcodec/libdiracenc.c index 0cffc047de..a1d7eb3ee3 100644 --- a/libavcodec/libdiracenc.c +++ b/libavcodec/libdiracenc.c @@ -80,11 +80,9 @@ static dirac_chroma_t GetDiracChromaFormat(enum PixelFormat ff_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].ff_pix_fmt == ff_pix_fmt) { + for (idx = 0; idx < num_formats; ++idx) + if (ffmpeg_dirac_pixel_format_map[idx].ff_pix_fmt == ff_pix_fmt) return ffmpeg_dirac_pixel_format_map[idx].dirac_pix_fmt; - } - } return formatNK; } |