From: Steinar H. Gunderson Date: Thu, 7 Jan 2016 21:54:29 +0000 (+0100) Subject: Remove a useless int return. X-Git-Tag: 1.0.0~45 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=64b8430160caae390a7e408a6c7d9629dc08e923 Remove a useless int return. --- 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; }