mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
fix bad decoding of particular jpeg images.
This commit is contained in:
parent
b08807922d
commit
e7629434fb
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ static mblk_t *jpeg2yuv(uint8_t *jpgbuf, int bufsize, MSVideoSize *reqsize){
|
|||
ret->b_wptr=ret->b_datap->db_lim;
|
||||
avpicture_fill(&dest,ret->b_rptr,PIX_FMT_YUV420P,reqsize->width,reqsize->height);
|
||||
|
||||
sws_ctx=sws_getContext(av_context.width,av_context.height,PIX_FMT_YUV420P,
|
||||
sws_ctx=sws_getContext(av_context.width,av_context.height,av_context.pix_fmt,
|
||||
reqsize->width,reqsize->height,PIX_FMT_YUV420P,SWS_FAST_BILINEAR,
|
||||
NULL, NULL, NULL);
|
||||
if (sws_scale(sws_ctx,orig.data,orig.linesize,0,av_context.height,dest.data,dest.linesize)<0){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue