[FFmpeg-devel] [PATCH] vda: fix h64 decoding, vda wants the entire buffer

Michael Niedermayer michaelni at gmx.at
Wed Apr 1 17:59:31 CEST 2015


On Wed, Apr 01, 2015 at 12:40:54PM +0200, Rainer Hochecker wrote:
[...]
> @@ -330,22 +337,6 @@ static int vda_h264_decode_slice(AVCodecContext *avctx,
>                                   const uint8_t *buffer,
>                                   uint32_t size)
>  {
> -    VDAContext *vda       = avctx->internal->hwaccel_priv_data;
> -    void *tmp;
> -
> -    tmp = av_fast_realloc(vda->bitstream,
> -                          &vda->allocated_size,
> -                          vda->bitstream_size + size + 4);
> -    if (!tmp)
> -        return AVERROR(ENOMEM);
> -
> -    vda->bitstream = tmp;
> -

> -    AV_WB32(vda->bitstream + vda->bitstream_size, size);

could it be that this should be using nal_length_size ?


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150401/d201d146/attachment.asc>


More information about the ffmpeg-devel mailing list