FFmpeg H264 parsing

后端 未结 1 1106
悲&欢浪女
悲&欢浪女 2021-01-25 07:54

I am using FFmpeg to decoding H.264 video, for the following program:

    #include 
    #include 
    #include 
           


        
相关标签:
1条回答
  • 2021-01-25 08:32

    In main() function of your code

      char *arghwtf = malloc(INBUF_SIZE);
    

    You have allocated memory by using malloc function which returns void * , and you are assigning this void * to char * that's why you are getting errors. You have to typecast it into char *.

    Instead try this.

     char *arghwtf =(char *) malloc(INBUF_SIZE);
    
    0 讨论(0)
提交回复
热议问题