Skip to content

Commit

Permalink
always call user defined read_frame() callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kylophone committed Aug 7, 2018
1 parent 26f749f commit d41b2e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Change Log

## (8/7/2018) [1.3.9]
- libvmaf: fix case where user defined read_frame() callback was being ignored.

## (6/21/2018) [1.3.8]

**Fixed bugs:**
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1,2 +1,2 @@
VMAF Development Kit (VDK) Version 1.3.8
VMAF Development Kit (VDK) Version 1.3.9
VMAF Version 0.6.1
2 changes: 1 addition & 1 deletion wrapper/libvmaf.pc
Expand Up @@ -5,7 +5,7 @@ includedir=/usr/local/include

Name: libvmaf
Description: Netflix's VMAF library
Version: 1.3.8
Version: 1.3.9
URL: https://github.com/Netflix/vmaf
Requires:
Requires.private:
Expand Down
4 changes: 2 additions & 2 deletions wrapper/src/combo.c
Expand Up @@ -174,7 +174,7 @@ void* combo_threadfunc(void* vmaf_thread_data)
{
// read frame from file

ret = read_frame(ref_buf, dis_buf, temp_buf, stride, user_data);
ret = thread_data->read_frame(ref_buf, dis_buf, temp_buf, stride, user_data);
if (ret == 1)
{
#ifdef MULTI_THREADING
Expand Down Expand Up @@ -230,7 +230,7 @@ void* combo_threadfunc(void* vmaf_thread_data)
}
#endif

ret = read_frame(next_ref_buf, next_dis_buf, temp_buf, stride, user_data);
ret = thread_data->read_frame(next_ref_buf, next_dis_buf, temp_buf, stride, user_data);
if (ret == 1)
{
#ifdef MULTI_THREADING
Expand Down

0 comments on commit d41b2e3

Please sign in to comment.