diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-04-17 16:57:55 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-04-19 14:10:03 -0400 |
commit | 31d76ec2883c04d29d1f173ea99e605a6936613a (patch) | |
tree | 3be48c5afe2efa176f32c504363c09435127b681 /tests | |
parent | cda7aa9eba79e113c8e46455b81e3f5a047a8d98 (diff) | |
download | ffmpeg-31d76ec2883c04d29d1f173ea99e605a6936613a.tar.gz |
In avcodec_open(), set return code to an error value only when an error occurs
instead of unconditionally at the start of the function.
This fixes a bug where a successful call to ff_thread_init() masks errors that
occur after that point in the function. It also makes future bugs like this
less likely since the error code is now set near to the point in the code
where the error is found.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions