Commit 415f4cca authored by rogerdpack's avatar rogerdpack Committed by Michael Niedermayer

dshow:protect access to curbufsize to promote consistency

Signed-off-by: 's avatarrogerdpack <rogerpack2005@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a966d948
......@@ -207,11 +207,11 @@ callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time)
// dump_videohdr(s, vdhdr);
if(shall_we_drop(s))
return;
WaitForSingleObject(ctx->mutex, INFINITE);
if(shall_we_drop(s))
goto fail;
pktl_next = av_mallocz(sizeof(AVPacketList));
if(!pktl_next)
goto fail;
......
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