summaryrefslogtreecommitdiff
path: root/libavformat/mpjpegdec.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-09-14 17:42:12 +0200
committerClément Bœsch <clement@stupeflix.com>2015-09-14 17:42:56 +0200
commitc8370a17f57f54acd6aaf53c28913202894d1663 (patch)
treebf62051295abf7b9994db86c683b6dfe214cac76 /libavformat/mpjpegdec.c
parent1de21215d4677d06b5653323b741b2363bc33a51 (diff)
avformat: fix style after recent commits
Diffstat (limited to 'libavformat/mpjpegdec.c')
-rw-r--r--libavformat/mpjpegdec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 4ce90ce6ba..d9553040e8 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -43,12 +43,12 @@ static int get_line(AVIOContext *pb, char *line, int line_size)
static void trim_right(char* p)
{
- char* end;
+ char *end;
if (!p || !*p)
return;
- end=p+strlen(p)-1;
- while (end!=p && av_isspace(*end)) {
- *end='\0';
+ end = p + strlen(p) - 1;
+ while (end != p && av_isspace(*end)) {
+ *end = '\0';
end--;
}
}
@@ -172,7 +172,7 @@ static int parse_multipart_header(AVIOContext *pb, void *log_ctx)
ret = get_line(pb, line, sizeof(line));
if (ret < 0) {
- if (ret==AVERROR_EOF)
+ if (ret == AVERROR_EOF)
break;
return ret;
}