History

vp8: correct if/else '{' placement

swap '{' and c-style comments removing a few redundant ones along the way; covers most leftovers from the clang-tidy run against an x86_64-linux config.

James Zern committed 10 years ago

Commit acb94601 parent 3bf02ad9 files · +20 −41Browse files

Showing the changes to vp8/decoder (1 of 9 files). Show all

Unified · Split

vp8/decoder/decodemv.c+2−4
@@ -65,8 +65,7 @@ static int read_mvcomponent(vp8_reader *r, const MV_CONTEXT *mvc) { · 64 unmodified lines
65 const vp8_prob *const p = (const vp8_prob *)mvc;65 const vp8_prob *const p = (const vp8_prob *)mvc;
66 int x = 0;66 int x = 0;
67 67
68 if (vp8_read(r, p[mvpis_short])) /* Large */68 if (vp8_read(r, p[mvpis_short])) { /* Large */
69 {
70 int i = 0;69 int i = 0;
71 70
72 do {71 do {
@@ -285,8 +284,7 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, · 212 unmodified lines
285 MB_MODE_INFO *mbmi) {284 MB_MODE_INFO *mbmi) {
286 vp8_reader *const bc = &pbi->mbc[8];285 vp8_reader *const bc = &pbi->mbc[8];
287 mbmi->ref_frame = (MV_REFERENCE_FRAME)vp8_read(bc, pbi->prob_intra);286 mbmi->ref_frame = (MV_REFERENCE_FRAME)vp8_read(bc, pbi->prob_intra);
288 if (mbmi->ref_frame) /* inter MB */287 if (mbmi->ref_frame) { /* inter MB */
289 {
290 enum { CNT_INTRA, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV };288 enum { CNT_INTRA, CNT_NEAREST, CNT_NEAR, CNT_SPLITMV };
291 int cnt[4];289 int cnt[4];
292 int *cntx = cnt;290 int *cntx = cnt;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t