mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-03-06 11:47:29 +00:00
dshow:protect access to curbufsize to promote consistency
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a966d94891
commit
415f4cca1d
@ -207,11 +207,11 @@ callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time)
|
|||||||
|
|
||||||
// dump_videohdr(s, vdhdr);
|
// dump_videohdr(s, vdhdr);
|
||||||
|
|
||||||
if(shall_we_drop(s))
|
|
||||||
return;
|
|
||||||
|
|
||||||
WaitForSingleObject(ctx->mutex, INFINITE);
|
WaitForSingleObject(ctx->mutex, INFINITE);
|
||||||
|
|
||||||
|
if(shall_we_drop(s))
|
||||||
|
goto fail;
|
||||||
|
|
||||||
pktl_next = av_mallocz(sizeof(AVPacketList));
|
pktl_next = av_mallocz(sizeof(AVPacketList));
|
||||||
if(!pktl_next)
|
if(!pktl_next)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user