Skip to content

Commit

Permalink
vcomp/cineform: fixed a crash witn unint frame
Browse files Browse the repository at this point in the history
It is actually a bug of cineform, which can be also reproduced with:
`-t testcard:c=RGB:pattern=noise -c cineform`, this is a workaround.
  • Loading branch information
MartinPulec committed Jul 2, 2024
1 parent 54286c2 commit 54daba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_compress/cineform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ static void cineform_compress_push(struct module *state, std::shared_ptr<video_f
}
std::unique_ptr<video_frame, decltype(&vf_free)> dummy(vf_alloc_desc_data(s->precompress_desc), vf_free);
video_frame *dummy_ptr = dummy.get();
vf_clear(dummy_ptr);

s->stop = true;
s->frame_queue.push(std::move(dummy));
Expand Down

0 comments on commit 54daba5

Please sign in to comment.