diff --git a/ffmpeg.c b/ffmpeg.c
index 93600f032d38155cef225a393f1560ea743d45ff..5087b7262abee0e635b8bfd88894ad3590eccc13 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -608,8 +608,8 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
     }
 
     if (ENABLE_VHOOK)
-    frame_hook_process(picture2, dec->pix_fmt, dec->width, dec->height,
-                       1000000 * ist->pts / AV_TIME_BASE);
+        frame_hook_process(picture2, dec->pix_fmt, dec->width, dec->height,
+                           1000000 * ist->pts / AV_TIME_BASE);
 
     if (picture != picture2)
         *picture = *picture2;