diff --git a/projects/rocdecode/samples/rocdecDecode/rocdecdecode.cpp b/projects/rocdecode/samples/rocdecDecode/rocdecdecode.cpp index 99927537b9..e2e52532e9 100644 --- a/projects/rocdecode/samples/rocdecDecode/rocdecdecode.cpp +++ b/projects/rocdecode/samples/rocdecDecode/rocdecdecode.cpp @@ -65,7 +65,7 @@ __attribute__((visibility("hidden"))) inline void report_error( << file_name << ":" << line) << ... << std::forward(args)) << std::endl; - std::abort(); + std::exit(EXIT_FAILURE); } //hardcoding for this sample @@ -362,7 +362,7 @@ void create_decoder(DecoderInfo& dec_info) { // this will get changed in reconfigure when the sequence header is parsed from the stream to detect the actual video parameters create_info.chroma_format = rocDecVideoChromaFormat_420; create_info.output_format = rocDecVideoSurfaceFormat_NV12; - create_info.bit_depth_minus_8 = 2; + create_info.bit_depth_minus_8 = 0; create_info.num_output_surfaces = 1; CHECK(rocDecCreateDecoder(&dec_info.decoder, &create_info)); }