fix inputs to sws_getCachedContext for ffmpeg #1559

pull/1586/head
nick black 3 years ago
parent b58919f145
commit 4cceb01acf
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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,

@ -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){

@ -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;

Loading…
Cancel
Save