|
|
@ -244,10 +244,13 @@ int ffmpeg_resize(ncvisual* n, int rows, int cols){
|
|
|
|
n->rowstride = sframe->linesize[0];
|
|
|
|
n->rowstride = sframe->linesize[0];
|
|
|
|
n->pixy = rows;
|
|
|
|
n->pixy = rows;
|
|
|
|
n->pixx = cols;
|
|
|
|
n->pixx = cols;
|
|
|
|
|
|
|
|
if((uint32_t*)sframe->data[0] != n->data){
|
|
|
|
|
|
|
|
//fprintf(stderr, "SETTING UP RESIZE %p\n", n->data);
|
|
|
|
ncvisual_set_data(n, sframe->data[0], false);
|
|
|
|
ncvisual_set_data(n, sframe->data[0], false);
|
|
|
|
if(n->details->frame){
|
|
|
|
if(n->details->frame){
|
|
|
|
av_freep(&n->details->frame);
|
|
|
|
av_freep(&n->details->frame);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
n->details->frame = sframe;
|
|
|
|
n->details->frame = sframe;
|
|
|
|
|
|
|
|
|
|
|
|
//fprintf(stderr, "SIZE SCALED: %d %d (%u)\n", nc->details->frame->height, nc->details->frame->width, nc->details->frame->linesize[0]);
|
|
|
|
//fprintf(stderr, "SIZE SCALED: %d %d (%u)\n", nc->details->frame->height, nc->details->frame->width, nc->details->frame->linesize[0]);
|
|
|
|