diff mbox

[FFmpeg-devel] avfilter/vf_dnn_processing: fix fate-source

Message ID 1573199500-25082-1-git-send-email-yejun.guo@intel.com
State Accepted
Commit f6e942251c59239520da3e541dc2e0d785a94bad
Headers show

Commit Message

Guo, Yejun Nov. 8, 2019, 7:51 a.m. UTC
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
---
 libavfilter/vf_dnn_processing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Nov. 8, 2019, 2:55 p.m. UTC | #1
On Fri, Nov 08, 2019 at 03:51:40PM +0800, Guo, Yejun wrote:
> Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
> ---
>  libavfilter/vf_dnn_processing.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavfilter/vf_dnn_processing.c b/libavfilter/vf_dnn_processing.c
index 87ad354..a916d38 100644
--- a/libavfilter/vf_dnn_processing.c
+++ b/libavfilter/vf_dnn_processing.c
@@ -241,7 +241,7 @@  static int copy_from_dnn_to_frame(AVFrame *out, const DNNData *dnn_data)
             for(int j = 0; j < out->width * 3; j++) {
                 int k = i * out->linesize[0] + j;
                 int t = i * out->width * 3 + j;
-                out->data[0][k] = av_clip((int)(dnn_output[t] * 255.0f), 0, 255);
+                out->data[0][k] = av_clip_uintp2((int)(dnn_output[t] * 255.0f), 8);
             }
         }
     } else {