The better simplification may be :

ctx->outputs[0]->hw_frames_ctx = s->stages[last_stage > 0] ? 
s->stages[last_stage].frames_ctx : ctx->inputs[0]->hw_frames_ctx;


-----Original Message-----
From: ffmpeg-devel [mailto:[email protected]] On Behalf Of Timo 
Rothenpieler
Sent: Monday, August 14, 2017 5:49 PM
To: [email protected]
Subject: Re: [FFmpeg-devel] [Patch] scale_npp : Fix pass through mode

Applied with a slightly changed logic to achieve the same with fewer lines.

(Which I forgot to commit before pushing, so there's two patches now) 
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to