diff options
author | Chris Cunningham <chcunningham@chromium.org> | 2016-07-27 18:33:30 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-07-30 01:02:41 +0200 |
commit | 52ec4cc09b5be755f166b7ed4755433c95173d6d (patch) | |
tree | 947c1ce225eb4052aeb22dfb1a709523d29fcb6c /libavformat | |
parent | bc9ce5f6bec01cea4c291e5a339d3c08d89700f0 (diff) | |
download | ffmpeg-52ec4cc09b5be755f166b7ed4755433c95173d6d.tar.gz |
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.c | 2 |
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; |