Commit d2d96d8d authored by Ghislain MARY's avatar Ghislain MARY

Fix memory leak and unhandled error case in VP8 RTP unpacker.

parent 4126d24b
......@@ -308,6 +308,13 @@ static void generate_partitions_list(Vp8RtpFmtUnpackerCtx *ctx, Vp8RtpFmtFrame *
}
last_cseq = packet->extended_cseq;
}
/* The current partition is not complete. */
if (partition != NULL) {
partition->error = Vp8RtpFmtIncompletePartition;
frame->error = Vp8RtpFmtIncompleteFrame;
add_partition_to_frame(frame, partition);
}
}
static void mark_last_present_partition_as_last_in_frame(Vp8RtpFmtFrame *frame) {
......
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