summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorChris Cunningham <chcunningham@chromium.org>2016-07-27 18:33:30 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-30 01:02:41 +0200
commit52ec4cc09b5be755f166b7ed4755433c95173d6d (patch)
tree947c1ce225eb4052aeb22dfb1a709523d29fcb6c /libavformat
parentbc9ce5f6bec01cea4c291e5a339d3c08d89700f0 (diff)
libavformat/matroskadec: Add test for seeking with codec delay.
Also cleanup parens for the skip_to_timecode check. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 60b1b345d2..d07a0920cf 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3153,7 +3153,7 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
// Compare signed timecodes. Timecode may be negative due to codec delay
// offset. We don't support timestamps greater than int64_t anyway - see
// AVPacket's pts.
- if ((int64_t)timecode < (int64_t)(matroska->skip_to_timecode))
+ if ((int64_t)timecode < (int64_t)matroska->skip_to_timecode)
return res;
if (is_keyframe)
matroska->skip_to_keyframe = 0;