mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 15:40:21 +00:00
change_pixfmt: added buffer padding
Pixelformat conversion suppose buffers with additional padding to handle "odd" resolutions that doesn't match the pixfmt native block size. Eg. this change fixes: ``` uv -t testcard:codec=R12L:size=1922x1080 -d gl -p change_pixfmt:RG48 ```
This commit is contained in:
@@ -107,7 +107,7 @@ static struct video_frame *filter(void *state, struct video_frame *in)
|
||||
if (s->vo_pp_out_buffer) {
|
||||
out->tiles[0].data = s->vo_pp_out_buffer;
|
||||
} else {
|
||||
out->tiles[0].data = malloc(out->tiles[0].data_len);
|
||||
out->tiles[0].data = malloc(out->tiles[0].data_len + MAX_PADDING);
|
||||
out->callbacks.data_deleter = vf_data_deleter;
|
||||
}
|
||||
out->callbacks.dispose = vf_free;
|
||||
|
||||
Reference in New Issue
Block a user