diff options
author | jstebbins <[email protected]> | 2009-12-09 19:45:57 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-12-09 19:45:57 +0000 |
commit | 8426cf2868de61bf8f688d549083a80e327ad1f8 (patch) | |
tree | 451794bafe7a10d27dee7f788fb01373b1f81542 /gtk/src | |
parent | 44271b50ac71961be9bf7fb5eb960124c09a0eea (diff) |
Avert a rare race condition.
A bad source can cause reader to call hb_stream_close before
decavcodecviWork ever starts. This causes hb_ffmpeg_context
to access an invalid pointer. So move the call to hb_ffmpeg_context
to after we check for a 0 length buffer in decavcodecvoiWork
since reader will have sent this to signal that it has reached
the end of the stream.
This does not eliminate the race condition, but it does make it
much less likely to happen and fixes the specific case where we
found this occuring.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3020 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
0 files changed, 0 insertions, 0 deletions