From 64b8430160caae390a7e408a6c7d9629dc08e923 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 7 Jan 2016 22:54:29 +0100 Subject: [PATCH] Remove a useless int return. --- h264encode.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/h264encode.cpp b/h264encode.cpp index 2569470..c233f39 100644 --- a/h264encode.cpp +++ b/h264encode.cpp @@ -1206,12 +1206,12 @@ static void sort_two(VAPictureH264 ref[], int left, int right, unsigned int key, sort_one(ref, j+1, right, list1_ascending, frame_idx); } -static int update_ReferenceFrames(int frame_type) +static void update_ReferenceFrames(int frame_type) { int i; if (frame_type == FRAME_B) - return 0; + return; CurrentCurrPic.flags = VA_PICTURE_H264_SHORT_TERM_REFERENCE; numShortTerm++; @@ -1224,8 +1224,6 @@ static int update_ReferenceFrames(int frame_type) current_frame_num++; if (current_frame_num > MaxFrameNum) current_frame_num = 0; - - return 0; } -- 2.39.2