diff --git a/libavformat/tee.c b/libavformat/tee.c index af52a490c6..821d23d407 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -424,6 +424,8 @@ static int filter_packet(void *log_ctx, AVPacket *pkt, } if (ret > 0) { + pkt->side_data = NULL; + pkt->side_data_elems = 0; av_packet_unref(pkt); new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size, av_buffer_default_free, NULL, 0);