You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
643 B
16 lines
643 B
9 years ago
|
Description: Replace deprecated FFmpeg API
|
||
|
Author: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
|
||
|
Last-Update: <2015-11-02>
|
||
|
|
||
|
--- libde265-1.0.2.orig/sherlock265/VideoDecoder.cc
|
||
|
+++ libde265-1.0.2/sherlock265/VideoDecoder.cc
|
||
|
@@ -219,7 +219,7 @@ void VideoDecoder::convert_frame_swscale
|
||
|
}
|
||
|
width = img->get_width();
|
||
|
height = img->get_height();
|
||
|
- sws = sws_getContext(width, height, PIX_FMT_YUV420P, width, height, PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL);
|
||
|
+ sws = sws_getContext(width, height, AV_PIX_FMT_YUV420P, width, height, AV_PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL);
|
||
|
}
|
||
|
|
||
|
int stride[3];
|