mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ffmpeg: need call ncvisual_decode() again in loop #1066
This commit is contained in:
parent
ac60e80923
commit
f49e1d8e8c
@ -401,6 +401,7 @@ int ncvisual_decode_loop(ncvisual* ncv){
|
||||
// FIXME log error
|
||||
return -1;
|
||||
}
|
||||
return ncvisual_decode(ncv);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
@ -86,6 +86,7 @@ int ncvisual_decode_loop(ncvisual* ncv){
|
||||
if(ncv->details.image->seek_subimage(0, 0, &newspec)){
|
||||
return -1;
|
||||
}
|
||||
ncv->details.framenum = 0;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
@ -117,7 +117,12 @@ TEST_CASE("Visual") {
|
||||
CHECK(1 == ret);
|
||||
struct ncplane* ncp = ncvisual_render(nc_, ncv, nullptr);
|
||||
CHECK(nullptr != ncp);
|
||||
ncplane_destroy(ncp);
|
||||
// FIXME verify that it is first frame, not last?
|
||||
ret = ncvisual_decode_loop(ncv);
|
||||
CHECK(0 == ret);
|
||||
ncp = ncvisual_render(nc_, ncv, nullptr);
|
||||
CHECK(nullptr != ncp);
|
||||
ncplane_destroy(ncp);
|
||||
ncvisual_destroy(ncv);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user