Quick fix in case something throws 8 bit samples at us
parent
640a2f54c6
commit
0d89cf2e6f
|
@ -281,6 +281,7 @@ int lockmgr_callback(void ** mutex, enum AVLockOp op)
|
||||||
return [NSDictionary dictionaryWithObjectsAndKeys:
|
return [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
[NSNumber numberWithInt:channels], @"channels",
|
[NSNumber numberWithInt:channels], @"channels",
|
||||||
[NSNumber numberWithInt:bitsPerSample], @"bitsPerSample",
|
[NSNumber numberWithInt:bitsPerSample], @"bitsPerSample",
|
||||||
|
[NSNumber numberWithBool:(bitsPerSample == 8)], @"unsigned",
|
||||||
[NSNumber numberWithFloat:frequency], @"sampleRate",
|
[NSNumber numberWithFloat:frequency], @"sampleRate",
|
||||||
[NSNumber numberWithBool:floatingPoint], @"floatingPoint",
|
[NSNumber numberWithBool:floatingPoint], @"floatingPoint",
|
||||||
[NSNumber numberWithDouble:totalFrames], @"totalFrames",
|
[NSNumber numberWithDouble:totalFrames], @"totalFrames",
|
||||||
|
|
Loading…
Reference in New Issue