diff --git a/src/media/ffmpeg.c b/src/media/ffmpeg.c index d4f83d29d..d467d6817 100644 --- a/src/media/ffmpeg.c +++ b/src/media/ffmpeg.c @@ -475,7 +475,7 @@ int ffmpeg_blit(ncvisual* ncv, int rows, int cols, ncplane* n, } //fprintf(stderr, "WHN NCV: %d/%d\n", inframe->width, inframe->height); ncv->details->swsctx = sws_getCachedContext(ncv->details->swsctx, - ncv->cols, ncv->rows, + inframe->width, inframe->height, inframe->format, cols, rows, targformat, diff --git a/src/poc/blitters.c b/src/poc/blitters.c index 9d0fa6e7c..ddc7e3924 100644 --- a/src/poc/blitters.c +++ b/src/poc/blitters.c @@ -34,6 +34,7 @@ int main(int argc, char** argv){ NCBLIT_PIXEL, // pixel graphics -1, }; + notcurses_check_pixel_support(nc); for(const int* blitter = blitters ; *blitter >= 0 ; ++blitter){ for(int scaling = NCSCALE_NONE ; scaling <= NCSCALE_STRETCH ; ++scaling){ for(int i = 1 ; i < argc ; ++i){ diff --git a/src/pocpp/visual.cpp b/src/pocpp/visual.cpp index 5cb46be16..376b5901b 100644 --- a/src/pocpp/visual.cpp +++ b/src/pocpp/visual.cpp @@ -71,7 +71,7 @@ int main(int argc, char** argv){ for(double i = 0 ; i < 256 ; ++i){ clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); if(ncvisual_rotate(ncv, M_PI / ((i / 32) + 2))){ - failed = true; + failed = true; // FIXME fails after a few dozen iterations break; } struct ncplane* newn;