libav: fix memory leak when converting packets to annex-b format
This commit is contained in:
parent
819b8c8394
commit
84b22640b2
1 changed files with 4 additions and 0 deletions
|
@ -397,6 +397,10 @@ lav_muxer_write_pkt(muxer_t *m, streaming_message_type_t smt, void *data)
|
|||
return -1;
|
||||
}
|
||||
|
||||
// h264_mp4toannexb filter might allocate new data.
|
||||
if(packet.data != pktbuf_ptr(pkt->pkt_payload))
|
||||
av_free(packet.data);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue