Commit 653ef882 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by James Almer

avformat/wtvdec: Cosmetics

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: 's avatarPeter Ross <pross@xvid.org>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 373c1c9b
...@@ -290,7 +290,7 @@ static AVIOContext * wtvfile_open2(AVFormatContext *s, const uint8_t *buf, int b ...@@ -290,7 +290,7 @@ static AVIOContext * wtvfile_open2(AVFormatContext *s, const uint8_t *buf, int b
buf += dir_length; buf += dir_length;
} }
return 0; return NULL;
} }
#define wtvfile_open(s, buf, buf_size, filename) \ #define wtvfile_open(s, buf, buf_size, filename) \
...@@ -904,10 +904,10 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p ...@@ -904,10 +904,10 @@ static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_p
wtv->last_valid_pts = wtv->pts; wtv->last_valid_pts = wtv->pts;
if (wtv->epoch == AV_NOPTS_VALUE || wtv->pts < wtv->epoch) if (wtv->epoch == AV_NOPTS_VALUE || wtv->pts < wtv->epoch)
wtv->epoch = wtv->pts; wtv->epoch = wtv->pts;
if (mode == SEEK_TO_PTS && wtv->pts >= seekts) { if (mode == SEEK_TO_PTS && wtv->pts >= seekts) {
avio_skip(pb, WTV_PAD8(len) - consumed); avio_skip(pb, WTV_PAD8(len) - consumed);
return 0; return 0;
} }
} }
} }
} else if (!ff_guidcmp(g, ff_data_guid)) { } else if (!ff_guidcmp(g, ff_data_guid)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment