Commit 6893b7a4 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

omxil: use convert_hevc_nal_units for hevc

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5e19ce93
......@@ -36,6 +36,7 @@
#include <vlc_block_helper.h>
#include <vlc_cpu.h>
#include "../h264_nal.h"
#include "../hevc_nal.h"
#include "omxil.h"
#include "omxil_core.h"
......@@ -1195,6 +1196,15 @@ static int OpenGeneric( vlc_object_t *p_this, bool b_encode )
p_header->pBuffer, p_header->nAllocLen,
(uint32_t*) &p_header->nFilledLen, NULL );
}
else if( p_dec->fmt_in.i_codec == VLC_CODEC_HEVC && !p_sys->in.b_direct )
{
p_header->nFilledLen = 0;
convert_hevc_nal_units( p_dec, p_dec->fmt_in.p_extra,
p_dec->fmt_in.i_extra,
p_header->pBuffer, p_header->nAllocLen,
(uint32_t*) &p_header->nFilledLen,
&p_sys->i_nal_size_length );
}
else if(p_sys->in.b_direct)
{
p_header->pOutputPortPrivate = p_header->pBuffer;
......
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