aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vb.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-04-17 16:57:55 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-04-19 14:10:03 -0400
commit31d76ec2883c04d29d1f173ea99e605a6936613a (patch)
tree3be48c5afe2efa176f32c504363c09435127b681 /libavcodec/vb.c
parentcda7aa9eba79e113c8e46455b81e3f5a047a8d98 (diff)
downloadffmpeg-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 'libavcodec/vb.c')
0 files changed, 0 insertions, 0 deletions