mirror of https://github.com/FFmpeg/FFmpeg.git
Get rid of the "ret" variable, and always use err. Report the packet as
consumed if err is unset. This should be equivalent to the old code,
which obviously required err=0 for p->result>=0 (and otherwise,
p->result must have had the value err was last set to). The code block
added by commit 32a5b63126
is also not needed anymore, because the new
code strictly returns err if it's >=0.
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
pull/258/head
parent
91ccd38c0b
commit
4cf1f68903
1 changed files with 5 additions and 14 deletions
Loading…
Reference in new issue