1 --- VTK-6.3.0/IO/FFMPEG/vtkFFMPEGWriter.cxx~ 2015-09-01 23:41:26.000000000 +0200
2 +++ VTK-6.3.0/IO/FFMPEG/vtkFFMPEGWriter.cxx 2016-03-15 20:58:02.064844887 +0100
4 c->height = this->Dim[1];
5 if (this->Writer->GetCompression())
7 - c->pix_fmt = PIX_FMT_YUVJ422P;
8 + c->pix_fmt = AV_PIX_FMT_YUVJ422P;
12 - c->pix_fmt = PIX_FMT_BGR24;
13 + c->pix_fmt = AV_PIX_FMT_BGR24;
16 //to do playback at actual recorded rate, this will need more work see also below
20 //for the output of the writer's input...
21 - this->rgbInput = avcodec_alloc_frame();
22 + this->rgbInput = av_frame_alloc();
25 vtkGenericWarningMacro (<< "Could not make rgbInput avframe." );
28 - int RGBsize = avpicture_get_size(PIX_FMT_RGB24, c->width, c->height);
29 + int RGBsize = avpicture_get_size(AV_PIX_FMT_RGB24, c->width, c->height);
30 unsigned char *rgb = (unsigned char *)av_malloc(sizeof(unsigned char) * RGBsize);
36 //The rgb buffer should get deleted when this->rgbInput is.
37 - avpicture_fill((AVPicture *)this->rgbInput, rgb, PIX_FMT_RGB24, c->width, c->height);
38 + avpicture_fill((AVPicture *)this->rgbInput, rgb, AV_PIX_FMT_RGB24, c->width, c->height);
40 //and for the output to the codec's input.
41 - this->yuvOutput = avcodec_alloc_frame();
42 + this->yuvOutput = av_frame_alloc();
45 vtkGenericWarningMacro (<< "Could not make yuvOutput avframe." );
47 //convert that to YUV for input to the codec
48 #ifdef VTK_FFMPEG_HAS_IMG_CONVERT
49 img_convert((AVPicture *)this->yuvOutput, cc->pix_fmt,
50 - (AVPicture *)this->rgbInput, PIX_FMT_RGB24,
51 + (AVPicture *)this->rgbInput, AV_PIX_FMT_RGB24,
52 cc->width, cc->height);
54 //convert that to YUV for input to the codec
55 SwsContext* convert_ctx = sws_getContext(
56 - cc->width, cc->height, PIX_FMT_RGB24,
57 + cc->width, cc->height, AV_PIX_FMT_RGB24,
58 cc->width, cc->height, cc->pix_fmt,
59 SWS_BICUBIC, NULL, NULL, NULL);
61 --- /home/users/baggins/devel/PLD/rpm/BUILD/VTK-6.3.0/IO/FFMPEG/vtkFFMPEGWriter.cxx.orig 2016-03-15 21:17:23.644519836 +0100
62 +++ /home/users/baggins/devel/PLD/rpm/BUILD/VTK-6.3.0/IO/FFMPEG/vtkFFMPEGWriter.cxx 2016-03-15 21:17:32.411309228 +0100