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:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Timo 
Rothenpieler
Sent: Monday, August 14, 2017 5:49 PM
To: ffmpeg-devel@ffmpeg.org
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
ffmpeg-devel@ffmpeg.org
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
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to