Fix VideoDecoder::get_video() with 3D.
authorCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 15:09:07 +0000 (16:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 13 Jun 2016 15:09:07 +0000 (16:09 +0100)
commitcd29c4ed26fde9b9c07190f92205705b13c6bd73
treeb90771925ef9d92faaf1d1fce574f30cfe5be2bc
parent78012b8cf9b4c6e35b425c97b6432551ce635c3a
Fix VideoDecoder::get_video() with 3D.

get_video() promises to return all video frames at the given time,
but this wasn't working for none-SBS-3D as it would be satisfied
when it got the first (left) frame.  Adjust get_video() to get all
required frames.

This showed up bugs in fill_both_eyes, whereby the from parameter
was ignored and the wrong things were done in some cases;
video_decoder_fill_test.cc tests this stuff.
src/lib/video_decoder.cc
src/lib/video_decoder.h
test/video_decoder_fill_test.cc