Skip to content

Commit

Permalink
fn output_image: Add back line breaks from C.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Oct 30, 2023
1 parent 1bb66bd commit d54b434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ impl Rav1dPicture {

unsafe fn output_image(c: &mut Rav1dContext, out: &mut Rav1dPicture) -> Rav1dResult {
let mut res = Ok(());

let r#in: *mut Rav1dThreadPicture = if c.all_layers || !c.max_spatial_id {
&mut c.out
} else {
Expand All @@ -616,6 +617,7 @@ unsafe fn output_image(c: &mut Rav1dContext, out: &mut Rav1dPicture) -> Rav1dRes
res = rav1d_apply_grain(c, out, &(*r#in).p);
}
rav1d_thread_picture_unref(r#in);

if !c.all_layers && c.max_spatial_id && !(c.out.p.data[0]).is_null() {
rav1d_thread_picture_move_ref(r#in, &mut c.out);
}
Expand Down

0 comments on commit d54b434

Please sign in to comment.