Ticket #3464: transcode_resize_fix.diff
File transcode_resize_fix.diff, 1.2 KB (added by , 17 years ago) |
---|
-
programs/mythtranscode/transcode.cpp
664 664 VideoOutput *videoOutput = nvp->getVideoOutput(); 665 665 bool is_key = 0; 666 666 bool first_loop = true; 667 unsigned char *newFrame = new unsigned char[ newWidth * newHeight * 3 / 2];667 unsigned char *newFrame = new unsigned char[frame.size]; 668 668 669 669 frame.buf = newFrame; 670 670 AVPicture imageIn, imageOut; … … 853 853 } 854 854 else 855 855 { 856 frame.buf = newFrame; 856 857 avpicture_fill(&imageIn, lastDecode->buf, PIX_FMT_YUV420P, 857 858 video_width, video_height); 858 859 avpicture_fill(&imageOut, frame.buf, PIX_FMT_YUV420P, … … 905 906 } 906 907 else 907 908 { 909 frame.buf = newFrame; 908 910 avpicture_fill(&imageIn, lastDecode->buf, PIX_FMT_YUV420P, 909 911 video_width, video_height); 910 912 avpicture_fill(&imageOut, frame.buf, PIX_FMT_YUV420P,