]> git.sesse.net Git - nageru/commitdiff
Remove a useless int return.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 7 Jan 2016 21:54:29 +0000 (22:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 7 Jan 2016 21:54:29 +0000 (22:54 +0100)
h264encode.cpp

index 2569470ef006e70806d8c40c8ae7c52a03abfd73..c233f39b738101140589182d9e738dedb467f861 100644 (file)
@@ -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;
 }