summaryrefslogtreecommitdiff
path: root/libavformat/wtvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-07 14:55:49 +0100
committerJames Almer <jamrial@gmail.com>2020-01-07 22:35:52 -0300
commit653ef8828a3b90deb468bf19a7ca39694364d59d (patch)
tree9e6be7aa5d59141074d6cea8ba71e0346f72e8e7 /libavformat/wtvdec.c
parent373c1c9b691fd4c6831b3a114a006b639304c2af (diff)
downloadffmpeg-653ef8828a3b90deb468bf19a7ca39694364d59d.tar.gz
avformat/wtvdec: Cosmetics
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/wtvdec.c')
-rw-r--r--libavformat/wtvdec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 92629bb31b..67d934f074 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -290,7 +290,7 @@ static AVIOContext * wtvfile_open2(AVFormatContext *s, const uint8_t *buf, int b
buf += dir_length;
}
- return 0;
+ return NULL;
}
#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
wtv->last_valid_pts = wtv->pts;
if (wtv->epoch == AV_NOPTS_VALUE || wtv->pts < wtv->epoch)
wtv->epoch = wtv->pts;
- if (mode == SEEK_TO_PTS && wtv->pts >= seekts) {
- avio_skip(pb, WTV_PAD8(len) - consumed);
- return 0;
- }
+ if (mode == SEEK_TO_PTS && wtv->pts >= seekts) {
+ avio_skip(pb, WTV_PAD8(len) - consumed);
+ return 0;
+ }
}
}
} else if (!ff_guidcmp(g, ff_data_guid)) {