Skip to content

Commit

Permalink
Fix "format" passed to "get_buffer" for YUV4:4:4 images.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Jul 2, 2015
1 parent 33d5b14 commit b4f53dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libde265/image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,18 @@ de265_error de265_image::alloc_image(int w,int h, enum de265_chroma c,
chroma_width = (chroma_width+1)/2;
break;

case de265_chroma_444:
spec.format = de265_image_format_YUV444P8;
break;

case de265_chroma_mono:
spec.format = de265_image_format_mono8;
chroma_width = 0;
chroma_height= 0;
break;

default:
spec.format = de265_image_format_YUV422P8;
assert(false);
break;
}

Expand Down

0 comments on commit b4f53dd

Please sign in to comment.