Skip to content
Snippets Groups Projects
Commit e0010bb9 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Vittorio Giovara
Browse files

mux: Do not leave stale side data pointers in ff_interleave_add_packet()

parent 6c8c7c24
Branches
Tags
No related merge requests found
...@@ -419,6 +419,8 @@ FF_DISABLE_DEPRECATION_WARNINGS ...@@ -419,6 +419,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS
#endif #endif
pkt->buf = NULL; pkt->buf = NULL;
pkt->side_data = NULL;
pkt->side_data_elems = 0;
// Duplicate the packet if it uses non-allocated memory // Duplicate the packet if it uses non-allocated memory
if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) { if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) {
av_free(this_pktl); av_free(this_pktl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment