diff options
author | James Zern <jzern@google.com> | 2016-07-19 20:51:25 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2016-07-19 20:51:25 -0700 |
commit | fd85664ae67e9ae6d309cf6d229ce39c217e92fd (patch) | |
tree | d0aca771cf5307dd51f9a3288d7b3a1fbbb476c5 /y4minput.c | |
parent | 1b048e966aed5362b814f4f5e1729abe62159d71 (diff) | |
download | libvpx-fd85664ae67e9ae6d309cf6d229ce39c217e92fd.tar libvpx-fd85664ae67e9ae6d309cf6d229ce39c217e92fd.tar.gz libvpx-fd85664ae67e9ae6d309cf6d229ce39c217e92fd.tar.bz2 libvpx-fd85664ae67e9ae6d309cf6d229ce39c217e92fd.zip |
vp8/{bitstream,rdopt},y4minput: correct break placement
these should be placed within {}s when present
Change-Id: If00e9766fa8cb039cc070467f353a468f99460fb
Diffstat (limited to 'y4minput.c')
-rw-r--r-- | y4minput.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/y4minput.c b/y4minput.c index 7de859f7a..acf7d69fe 100644 --- a/y4minput.c +++ b/y4minput.c @@ -73,33 +73,39 @@ static int y4m_parse_tags(y4m_input *_y4m, char *_tags) { case 'W': { if (sscanf(p + 1, "%d", &_y4m->pic_w) != 1) return -1; got_w = 1; - } break; + break; + } case 'H': { if (sscanf(p + 1, "%d", &_y4m->pic_h) != 1) return -1; got_h = 1; - } break; + break; + } case 'F': { if (sscanf(p + 1, "%d:%d", &_y4m->fps_n, &_y4m->fps_d) != 2) { return -1; } got_fps = 1; - } break; + break; + } case 'I': { _y4m->interlace = p[1]; got_interlace = 1; - } break; + break; + } case 'A': { if (sscanf(p + 1, "%d:%d", &_y4m->par_n, &_y4m->par_d) != 2) { return -1; } got_par = 1; - } break; + break; + } case 'C': { if (q - p > 16) return -1; memcpy(_y4m->chroma_type, p + 1, q - p - 1); _y4m->chroma_type[q - p - 1] = '\0'; got_chroma = 1; - } break; + break; + } /*Ignore unknown tags.*/ } } @@ -337,7 +343,8 @@ static void y4m_convert_42xpaldv_42xjpeg(y4m_input *_y4m, unsigned char *_dst, } _dst += c_sz - c_w; tmp -= c_w; - } break; + break; + } case 2: { /*Slide C_r down a quarter-pel. This is the same as the horizontal filter.*/ @@ -373,7 +380,8 @@ static void y4m_convert_42xpaldv_42xjpeg(y4m_input *_y4m, unsigned char *_dst, _dst++; tmp++; } - } break; + break; + } } /*For actual interlaced material, this would have to be done separately on each field, and the shift amounts would be different. |