History

lavc/avs2_parser.c: optimize code style

hwren committed 6 years ago

Commit de0a5551 parent b15e8751 file · +3 −3Browse files

Unified · Split

libavcodec/avs2_parser.c+3−3
@@ -34,9 +34,9 @@ static int avs2_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_siz · 33 unmodified lines
3434
3535 if (!pic_found) {
3636 for (; cur < buf_size; ++cur) {
37− state = (state<<8) | buf[cur];
37+ state = (state << 8) | buf[cur];
3838 if (AVS2_ISUNIT(buf[cur])){
39− ++cur;
39+ cur++;
4040 pic_found = 1;
4141 break;
4242 }
@@ -46,7 +46,7 @@ static int avs2_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_siz · 3 unmodified lines
4646 if (pic_found) {
4747 if (!buf_size)
4848 return END_NOT_FOUND;
49− for (; cur < buf_size; ++cur) {
49+ for (; cur < buf_size; cur++) {
5050 state = (state << 8) | buf[cur];
5151 if ((state & 0xFFFFFF00) == 0x100 && state > AVS2_SLICE_MAX_START_CODE) {
5252 pc->frame_start_found = 0;

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