[FFmpeg-cvslog] vda: convert 3 byte NAL sizes to 4 byte.
Sebastien Zwickert
git at videolan.org
Sun Jan 8 20:30:29 CET 2012
ffmpeg | branch: master | Sebastien Zwickert <dilaroga at free.fr> | Sun Jan 8 20:22:12 2012 +0100| [5ada64a54913cc72da76010cf4a702eccdc1ecd2] | committer: Sebastien Zwickert
vda: convert 3 byte NAL sizes to 4 byte.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ada64a54913cc72da76010cf4a702eccdc1ecd2
---
libavcodec/vda.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/libavcodec/vda.c b/libavcodec/vda.c
index aaf5ba0..20207ea 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,
More information about the ffmpeg-cvslog
mailing list