From b9aa69da263759ce63593adae3327b8de25cd388 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 20 Sep 2011 10:06:32 +0000 Subject: Misc video (re #1370): ignore return value of sws_scale() as it returned zero on Linux in some conversion, although the resulting picture looks okay git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3757 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/src/pjmedia/converter_libswscale.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pjmedia/src/pjmedia/converter_libswscale.c b/pjmedia/src/pjmedia/converter_libswscale.c index b9e74a22..7ab50dd8 100644 --- a/pjmedia/src/pjmedia/converter_libswscale.c +++ b/pjmedia/src/pjmedia/converter_libswscale.c @@ -154,7 +154,12 @@ static pj_status_t libswscale_conv_convert(pjmedia_converter *converter, 0, src->apply_param.size.h, dst->apply_param.planes, dst->apply_param.strides); - return h==(int)dst->apply_param.size.h ? PJ_SUCCESS : PJ_EUNKNOWN; + //sws_scale() return value can't be trusted? There are cases when + //sws_scale() returns zero but conversion seems to work okay. + //return h==(int)dst->apply_param.size.h ? PJ_SUCCESS : PJ_EUNKNOWN; + PJ_UNUSED_ARG(h); + + return PJ_SUCCESS; } static void libswscale_conv_destroy(pjmedia_converter *converter) -- cgit v1.2.3