Commit 6403efb4 authored by François Grisez's avatar François Grisez
Browse files

Add an error string for kCVReturnAllocationFailed status code

parent 41868bba
......@@ -52,6 +52,9 @@ static const char *os_status_to_string(OSStatus status) {
case kVTParameterErr:
message = "parameter error";
break;
case kCVReturnAllocationFailed:
message = "return allocution failed";
break;
default:
break;
}
......@@ -635,7 +638,7 @@ static void h264_dec_output_cb(VTH264DecCtx *ctx, void *sourceFrameRefCon,
size_t i;
if(status != noErr || imageBuffer == NULL) {
vth264dec_error("fail to decode one frame: error %d", (int)status);
vth264dec_error("fail to decode one frame: %s", os_status_to_string(status));
ms_filter_lock(ctx->f);
if(ctx->enable_avpf) {
......
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