Qt使用avcodec_send_frame和avcodec_receive_packet程序段错误
报错Theinferiorstoppedbecauseittriggeredanexception.Stoppedinthread9by:Exceptionat0x75cd4e3f,code:0xc00000005:readaccessviolationat:0x1,flags=0x0.intgot_picture=0;intret=1;/*encodetheimage*/if(pkt==null