]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_transpose_vaapi.c
avfilter: add vif filter
[ffmpeg] / libavfilter / vf_transpose_vaapi.c
index 13c1dd64937d19316e3d4654b3aaa1da104e0f34..a4c654266de4712c1eb699172cb5395a58ce55fa 100644 (file)
@@ -143,6 +143,10 @@ static int transpose_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_fra
         goto fail;
     }
 
+    err = av_frame_copy_props(output_frame, input_frame);
+    if (err < 0)
+        goto fail;
+
     err = ff_vaapi_vpp_init_params(avctx, &params,
                                    input_frame, output_frame);
     if (err < 0)
@@ -155,9 +159,6 @@ static int transpose_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_fra
     if (err < 0)
         goto fail;
 
-    err = av_frame_copy_props(output_frame, input_frame);
-    if (err < 0)
-        goto fail;
     av_frame_free(&input_frame);
 
     av_log(avctx, AV_LOG_DEBUG, "Filter output: %s, %ux%u (%"PRId64").\n",