projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add another .srt test; remove checking of .srt subtitle indices as the strict sequenc...
[dcpomatic.git]
/
test
/
ffmpeg_decoder_seek_test.cc
diff --git
a/test/ffmpeg_decoder_seek_test.cc
b/test/ffmpeg_decoder_seek_test.cc
index dd80765f419e6e4e3bc9995fd602271f9e934758..968c3bdf910eb0265441739ae4b07a7783cfb172 100644
(file)
--- a/
test/ffmpeg_decoder_seek_test.cc
+++ b/
test/ffmpeg_decoder_seek_test.cc
@@
-36,16
+36,17
@@
using std::cerr;
using std::vector;
using std::cerr;
using std::vector;
+using std::list;
using boost::shared_ptr;
using boost::optional;
static void
check (FFmpegDecoder& decoder, int frame)
{
using boost::shared_ptr;
using boost::optional;
static void
check (FFmpegDecoder& decoder, int frame)
{
-
optional
<ContentVideo> v;
+
list
<ContentVideo> v;
v = decoder.get_video (frame, true);
v = decoder.get_video (frame, true);
- BOOST_CHECK (v);
- BOOST_CHECK_EQUAL (v
->
frame, frame);
+ BOOST_CHECK (v
.size() == 1
);
+ BOOST_CHECK_EQUAL (v
.front().
frame, frame);
}
static void
}
static void