summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/deca52.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c
index 922b88132..d605a8dd7 100644
--- a/libhb/deca52.c
+++ b/libhb/deca52.c
@@ -394,16 +394,14 @@ static hb_buffer_t* Decode(hb_work_object_t *w)
hb_buffer_close(&flt);
}
- if (out == NULL)
+ if (out != NULL)
{
- return NULL;
+ out->s.start = pts;
+ out->s.duration = frame_dur;
+ pts += frame_dur;
+ out->s.stop = pts;
+ pv->next_expected_pts = pts;
}
-
- out->s.start = pts;
- out->s.duration = frame_dur;
- pts += frame_dur;
- out->s.stop = pts;
- pv->next_expected_pts = pts;
return out;
}