Commit 5db89bd6 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix crash in ffmpeg h264 decoder integration. AVFrame MUST be zeroed.

parent 71a443a6
......@@ -243,7 +243,7 @@ static void dec_process(MSFilter *f){
DecData *d=(DecData*)f->data;
mblk_t *im;
MSQueue nalus;
AVFrame orig;
/*push the sps/pps given in sprop-parameter-sets if any*/
......@@ -270,6 +270,9 @@ static void dec_process(MSFilter *f){
int len;
int got_picture=0;
AVPacket pkt;
AVFrame orig;
/*it is required to memset the structure, because avcodec_get_frame_defaults() eventually frees non-null content*/
av_init_packet(&pkt); = p;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment