[FFmpeg-devel] [PATCH] lavu/video_enc_params: add misssing space

Guo, Yejun yejun.guo at intel.com
Sat Apr 17 14:48:45 EEST 2021


---
just got to know this style by https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/6c65e499909016ff45c207c149f287ee5b3cf808

 libavutil/video_enc_params.c | 2 +-
 libavutil/video_enc_params.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/video_enc_params.c b/libavutil/video_enc_params.c
index 635176ab91..9523758644 100644
--- a/libavutil/video_enc_params.c
+++ b/libavutil/video_enc_params.c
@@ -52,7 +52,7 @@ AVVideoEncParams *av_video_enc_params_alloc(enum AVVideoEncParamsType type,
     return par;
 }
 
-AVVideoEncParams*
+AVVideoEncParams *
 av_video_enc_params_create_side_data(AVFrame *frame, enum AVVideoEncParamsType type,
                                      unsigned int nb_blocks)
 {
diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_params.h
index fc0c3bc1a5..ffc6d8f50f 100644
--- a/libavutil/video_enc_params.h
+++ b/libavutil/video_enc_params.h
@@ -139,7 +139,7 @@ typedef struct AVVideoBlockParams {
 /*
  * Get the block at the specified {@code idx}. Must be between 0 and nb_blocks.
  */
-static av_always_inline AVVideoBlockParams*
+static av_always_inline AVVideoBlockParams *
 av_video_enc_params_block(AVVideoEncParams *par, unsigned int idx)
 {
     av_assert0(idx < par->nb_blocks);
@@ -164,7 +164,7 @@ AVVideoEncParams *av_video_enc_params_alloc(enum AVVideoEncParamsType type,
  * as AVFrameSideData of type AV_FRAME_DATA_VIDEO_ENC_PARAMS
  * and initializes the variables.
  */
-AVVideoEncParams*
+AVVideoEncParams *
 av_video_enc_params_create_side_data(AVFrame *frame, enum AVVideoEncParamsType type,
                                      unsigned int nb_blocks);
 
-- 
2.17.1



More information about the ffmpeg-devel mailing list