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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

libavcodec/parser.c:230:13: 
228.             int size= buf_size + avctx->extradata_size;
229.             *poutbuf_size= size;
230.             *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
                 ^
231. 
232.             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(FF_INTERNAL_MEM_TYPE size)
      ^
  65. {
  66.     void *ptr = NULL;

libavutil/mem.c:66:5: 
  64. void *av_malloc(FF_INTERNAL_MEM_TYPE 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, FF_INTERNAL_MEM_TYPE size)

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