FS-9394 #resolve fix h263 leak

This commit is contained in:
Seven Du 2016-07-30 10:27:09 +08:00
parent ac2734e90c
commit e2928b8a75
1 changed files with 4 additions and 1 deletions

View File

@ -693,7 +693,10 @@ static switch_status_t consume_h263_bitstream(h264_codec_context_t *context, swi
#endif
}
if (!context->nalus[context->nalu_current_index].len) frame->m = 1;
if (!context->nalus[context->nalu_current_index].len) {
av_packet_unref(&context->encoder_avpacket);
frame->m = 1;
}
#if 0
{