Commit ab2889d9 authored by Yunqing Wang's avatar Yunqing Wang
Browse files

Fix a bug in high-bit-depth encoding

This patch fixed issue 47: "Segfault when encoding 10bit video".
The incorrect setting of use_highbitdepth caused a crash.

Change-Id: I5657342f57d57dd08598bb25cbe7f8fcee809bd7
parent 6796e7f1
......@@ -3964,7 +3964,7 @@ int av1_receive_raw_frame(AV1_COMP *cpi, unsigned int frame_flags,
const int subsampling_x = sd->subsampling_x;
const int subsampling_y = sd->subsampling_y;
const int use_highbitdepth = sd->flags & YV12_FLAG_HIGHBITDEPTH;
const int use_highbitdepth = (sd->flags & YV12_FLAG_HIGHBITDEPTH) != 0;
check_initial_width(cpi, use_highbitdepth, subsampling_x, subsampling_y);
check_initial_width(cpi, subsampling_x, subsampling_y);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment