History

avformat/webpenc: Reindentation

Andreas Rheinhardt committed 5 years ago

Commit df9d9691 parent f9043de1 file · +11 −11Browse files

Unified · Split

libavformat/webpenc.c+11−11
@@ -53,22 +53,22 @@ static int webp_init(AVFormatContext *s) · 52 unmodified lines
5353
5454 static int is_animated_webp_packet(AVPacket *pkt)
5555 {
56− int skip = 0;
57− unsigned flags = 0;
56+ int skip = 0;
57+ unsigned flags = 0;
5858
59− if (pkt->size < 4)
59+ if (pkt->size < 4)
6060 return AVERROR_INVALIDDATA;
61− if (AV_RL32(pkt->data) == AV_RL32("RIFF"))
62− skip = 12;
61+ if (AV_RL32(pkt->data) == AV_RL32("RIFF"))
62+ skip = 12;
6363 // Safe to do this as a valid WebP bitstream is >=30 bytes.
64− if (pkt->size < skip + 4)
64+ if (pkt->size < skip + 4)
6565 return AVERROR_INVALIDDATA;
66− if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) {
67− flags |= pkt->data[skip + 4 + 4];
68− }
66+ if (AV_RL32(pkt->data + skip) == AV_RL32("VP8X")) {
67+ flags |= pkt->data[skip + 4 + 4];
68+ }
6969
70− if (flags & 2) // ANIMATION_FLAG is on
71− return 1;
70+ if (flags & 2) // ANIMATION_FLAG is on
71+ return 1;
7272 return 0;
7373 }
7474

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