Changeset 31d76ec2 in ffmpeg

Timestamp:
Apr 19, 2011, 6:10:03 PM (14 years ago)
Author:
Justin Ruggles <justin.ruggles@gmail.com>
Branches:
master
Children:
488d2b63, efb5fa79
Parents:
cda7aa9e
git-author:
Justin Ruggles <justin.ruggles@gmail.com> (04/17/11 20:57:55)
git-committer:
Justin Ruggles <justin.ruggles@gmail.com> (04/19/11 18:10:03)
Message:

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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.