« Previous | Next » 

Revision 31d76ec2

ID31d76ec2883c04d29d1f173ea99e605a6936613a
Parent cda7aa9e
Child 488d2b63, efb5fa79

Added by Justin Ruggles over 9 years ago

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences