Commit 5ada64a5 authored by Sebastien Zwickert's avatar Sebastien Zwickert

vda: convert 3 byte NAL sizes to 4 byte.

parent ca324f98
...@@ -179,6 +179,11 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx, ...@@ -179,6 +179,11 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx,
vda_lock_operation(&vda_ctx->queue_mutex, AV_LOCK_CREATE); vda_lock_operation(&vda_ctx->queue_mutex, AV_LOCK_CREATE);
if (extradata[4]==0xFE) {
// convert 3 byte NAL sizes to 4 byte
extradata[4] = 0xFF;
}
config_info = CFDictionaryCreateMutable(kCFAllocatorDefault, config_info = CFDictionaryCreateMutable(kCFAllocatorDefault,
4, 4,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryKeyCallBacks,
......
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