libavcodec/parser.c:230: error: Null Dereference
  pointer `*poutbuf` last assigned on line 228 could be null and is dereferenced by call to `memcpy()` at line 230, column 13.

libavcodec/parser.c:206:1: start of procedure av_parser_change()
204.  * @deprecated use AVBitstreamFilter
205.  */
206. int av_parser_change(AVCodecParserContext *s,
     ^
207.                      AVCodecContext *avctx,
208.                      uint8_t **poutbuf, int *poutbuf_size,

libavcodec/parser.c:211:8: Taking true branch
209.                      const uint8_t *buf, int buf_size, int keyframe){
210. 
211.     if(s && s->parser->split){
            ^
212.         if((avctx->flags & CODEC_FLAG_GLOBAL_HEADER) || (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER)){
213.             int i= s->parser->split(avctx, buf, buf_size);

libavcodec/parser.c:211:13: Taking true branch
209.                      const uint8_t *buf, int buf_size, int keyframe){
210. 
211.     if(s && s->parser->split){
                 ^
212.         if((avctx->flags & CODEC_FLAG_GLOBAL_HEADER) || (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER)){
213.             int i= s->parser->split(avctx, buf, buf_size);

libavcodec/parser.c:212:13: Taking true branch
210. 
211.     if(s && s->parser->split){
212.         if((avctx->flags & CODEC_FLAG_GLOBAL_HEADER) || (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER)){
                 ^
213.             int i= s->parser->split(avctx, buf, buf_size);
214.             buf += i;

libavcodec/parser.c:213:13: Skipping __function_pointer__(): unresolved function pointer
211.     if(s && s->parser->split){
212.         if((avctx->flags & CODEC_FLAG_GLOBAL_HEADER) || (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER)){
213.             int i= s->parser->split(avctx, buf, buf_size);
                 ^
214.             buf += i;
215.             buf_size -= i;

libavcodec/parser.c:214:13: 
212.         if((avctx->flags & CODEC_FLAG_GLOBAL_HEADER) || (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER)){
213.             int i= s->parser->split(avctx, buf, buf_size);
214.             buf += i;
                 ^
215.             buf_size -= i;
216.         }

libavcodec/parser.c:215:13: 
213.             int i= s->parser->split(avctx, buf, buf_size);
214.             buf += i;
215.             buf_size -= i;
                 ^
216.         }
217.     }

libavcodec/parser.c:220:5: 
218. 
219.     /* cast to avoid warning about discarding qualifiers */
220.     *poutbuf= (uint8_t *) buf;
         ^
221.     *poutbuf_size= buf_size;
222.     if(avctx->extradata){

libavcodec/parser.c:221:5: 
219.     /* cast to avoid warning about discarding qualifiers */
220.     *poutbuf= (uint8_t *) buf;
221.     *poutbuf_size= buf_size;
         ^
222.     if(avctx->extradata){
223.         if(  (keyframe && (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER))

libavcodec/parser.c:222:8: Taking true branch
220.     *poutbuf= (uint8_t *) buf;
221.     *poutbuf_size= buf_size;
222.     if(avctx->extradata){
            ^
223.         if(  (keyframe && (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER))
224.             /*||(s->pict_type != FF_I_TYPE && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_NOKEY))*/

libavcodec/parser.c:223:15: Taking true branch
221.     *poutbuf_size= buf_size;
222.     if(avctx->extradata){
223.         if(  (keyframe && (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER))
                   ^
224.             /*||(s->pict_type != FF_I_TYPE && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_NOKEY))*/
225.             /*||(? && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_BEGIN)*/){

libavcodec/parser.c:223:28: Taking true branch
221.     *poutbuf_size= buf_size;
222.     if(avctx->extradata){
223.         if(  (keyframe && (avctx->flags2 & CODEC_FLAG2_LOCAL_HEADER))
                                ^
224.             /*||(s->pict_type != FF_I_TYPE && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_NOKEY))*/
225.             /*||(? && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_BEGIN)*/){

libavcodec/parser.c:226:13: 
224.             /*||(s->pict_type != FF_I_TYPE && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_NOKEY))*/
225.             /*||(? && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_BEGIN)*/){
226.             int size= buf_size + avctx->extradata_size;
                 ^
227.             *poutbuf_size= size;
228.             *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);

libavcodec/parser.c:227:13: 
225.             /*||(? && (s->flags & PARSER_FLAG_DUMP_EXTRADATA_AT_BEGIN)*/){
226.             int size= buf_size + avctx->extradata_size;
227.             *poutbuf_size= size;
                 ^
228.             *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
229. 

libavcodec/parser.c:228:13: 
226.             int size= buf_size + avctx->extradata_size;
227.             *poutbuf_size= size;
228.             *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
                 ^
229. 
230.             memcpy(*poutbuf, avctx->extradata, avctx->extradata_size);

libavutil/mem.c:64:1: start of procedure av_malloc()
  62.    linker will do it automatically. */
  63. 
  64. void *av_malloc(unsigned int size)
      ^
  65. {
  66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
  64. void *av_malloc(unsigned int size)
  65. {
  66.     void *ptr = NULL;
          ^
  67. #if CONFIG_MEMALIGN_HACK
  68.     long diff;

libavutil/mem.c:72:8: Taking true branch
  70. 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-16) )
             ^
  73.         return NULL;
  74. 

libavutil/mem.c:73:9: 
  71.     /* let's disallow possible ambiguous cases */
  72.     if(size > (INT_MAX-16) )
  73.         return NULL;
              ^
  74. 
  75. #if CONFIG_MEMALIGN_HACK

libavutil/mem.c:117:1: return from a call to av_malloc
  115. #endif
  116.     return ptr;
  117. }
       ^
  118. 
  119. void *av_realloc(void *ptr, unsigned int size)

libavcodec/parser.c:230:13: 
228.             *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
229. 
230.             memcpy(*poutbuf, avctx->extradata, avctx->extradata_size);
                 ^
231.             memcpy((*poutbuf) + avctx->extradata_size, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
232.             return 1;
