ass: K&R formatting cosmetics

This commit is contained in:
Patrice Clement
2014-02-28 18:31:29 +01:00
committed by Diego Biurrun
parent 9514440337
commit 5c9c305d14

View File

@@ -22,6 +22,7 @@
#include <stdint.h>
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "internal.h"
@@ -38,8 +39,8 @@ static int probe(AVProbeData *p)
{
const char *header = "[Script Info]";
if( !memcmp(p->buf , header, strlen(header))
|| !memcmp(p->buf+3, header, strlen(header)))
if (!memcmp(p->buf, header, strlen(header)) ||
!memcmp(p->buf + 3, header, strlen(header)))
return AVPROBE_SCORE_MAX;
return 0;
@@ -117,8 +118,10 @@ static int read_header(AVFormatContext *s)
*(dst[i]) = p;
memcpy(p + pos[i], line, len + 1);
pos[i] += len;
if(i) ass->event_count++;
else header_remaining--;
if (i)
ass->event_count++;
else
header_remaining--;
}
st->codec->extradata_size = pos[0];