From 5ada64a54913cc72da76010cf4a702eccdc1ecd2 Mon Sep 17 00:00:00 2001 From: Sebastien Zwickert Date: Sun, 8 Jan 2012 20:22:12 +0100 Subject: [PATCH] vda: convert 3 byte NAL sizes to 4 byte. --- libavcodec/vda.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavcodec/vda.c b/libavcodec/vda.c index aaf5ba047a..20207eab70 100644 --- a/libavcodec/vda.c +++ b/libavcodec/vda.c @@ -179,6 +179,11 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx, 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, 4, &kCFTypeDictionaryKeyCallBacks,