diff options
author | rogerdpack <rogerpack2005@gmail.com> | 2012-08-19 08:10:07 -0600 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-20 20:58:05 +0200 |
commit | 415f4cca1dfd581acd78d246d765b6e466a6e4ed (patch) | |
tree | dcf7000646385ae35654226a5c830137ff57aa87 /libavdevice | |
parent | a966d94891cea4b571bd2cac0e94b13ec93d997a (diff) | |
download | ffmpeg-415f4cca1dfd581acd78d246d765b6e466a6e4ed.tar.gz |
dshow:protect access to curbufsize to promote consistency
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/dshow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 0d1987be28..ea6c21cc6a 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -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; |