mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 07:40:24 +00:00
Dshow: compute data len
Screen capture returns wrong buffer length so we override it with the expected value.
This commit is contained in:
@@ -1317,7 +1317,8 @@ static struct video_frame * vidcap_dshow_grab(void *state, struct audio_frame **
|
||||
s->frame->tiles[0].data = (char *) s->returnBuffer;
|
||||
//fprintf(stderr, "[dshow] s: %p\n", s);
|
||||
//s->tile->data_len = s->width * s->height * 3;
|
||||
s->frame->tiles[0].data_len = s->returnBufferLen;
|
||||
s->frame->tiles[0].data_len = is_codec_opaque(s->frame->color_spec) ? s->returnBufferLen :
|
||||
vc_get_datalen(s->frame->tiles[0].width, s->frame->tiles[0].height, s->frame->color_spec);
|
||||
|
||||
/*
|
||||
fprintf(stderr, "[dshow] s5: %p\n", s);
|
||||
|
||||
Reference in New Issue
Block a user