ass: K&R formatting cosmetics
This commit is contained in:
committed by
Diego Biurrun
parent
9514440337
commit
5c9c305d14
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user