X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=h264encode.cpp;h=c233f39b738101140589182d9e738dedb467f861;hb=64b8430160caae390a7e408a6c7d9629dc08e923;hp=2569470ef006e70806d8c40c8ae7c52a03abfd73;hpb=a1f1d6374a7c519c7a8b412578c9b88d64edddd4;p=nageru 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; }