~videolan/vlc/2.1-manual

« back to all changes in this revision

Viewing changes to modules/codec/avcodec/video.c

  • Committer: Benjamin Drung
  • Date: 2013-11-07 18:01:03 UTC
  • Revision ID: bdrung@ubuntu.com-20131107180103-v0rlqzz5ietdn25o
Manual import commit 4208d104b93c9ccca318bc4f27cdf176ec2b8956 from vlc-2.1 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * video.c: video decoder using the libavcodec library
3
3
 *****************************************************************************
4
4
 * Copyright (C) 1999-2001 VLC authors and VideoLAN
5
 
 * $Id: f0e69eca96f70e41798dc761c9664b3dd1ea28ab $
 
5
 * $Id: 2fd48affcd61920340d43486a8d32292527ee2a2 $
6
6
 *
7
7
 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8
8
 *          Gildas Bazin <gbazin@videolan.org>
858
858
        {
859
859
            memcpy( p_sys->p_context->extradata,
860
860
                    p_dec->fmt_in.p_extra, i_size );
861
 
            memset( &((uint8_t*)p_sys->p_context->extradata)[i_size],
 
861
            memset( p_sys->p_context->extradata + i_size,
862
862
                    0, FF_INPUT_BUFFER_PADDING_SIZE );
863
863
        }
864
864
    }