Skip to content
Snippets Groups Projects
Commit 31d76ec2 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

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.
parent cda7aa9e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment