aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@free.fr>2012-01-08 20:22:12 +0100
committerSebastien Zwickert <dilaroga@free.fr>2012-01-08 20:22:12 +0100
commit5ada64a54913cc72da76010cf4a702eccdc1ecd2 (patch)
treeec03d826df5e6505f46886be2b44cd2ef465b101
parentca324f9869bc70650da22c882e762da6f573fb0b (diff)
downloadffmpeg-5ada64a54913cc72da76010cf4a702eccdc1ecd2.tar.gz
vda: convert 3 byte NAL sizes to 4 byte.
-rw-r--r--libavcodec/vda.c5
1 files changed, 5 insertions, 0 deletions
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,