diff options
author | wm4 <wm4@nowhere> | 2013-11-11 12:08:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-12 23:34:37 +0100 |
commit | a72072c6059d8c9661e58346359231c694ced968 (patch) | |
tree | f0dad7ddb5a920b166a59bc2a76e7a1246ecf60a /video | |
parent | 824e6550f8ef1f361701eae469ada35d3889ab83 (diff) | |
download | mpv-a72072c6059d8c9661e58346359231c694ced968.tar.bz2 mpv-a72072c6059d8c9661e58346359231c694ced968.tar.xz |
af_lavcac3enc: simplify format negotiation
The format negotiation is the same, except don't confusingly copy the
input format into af->data, just to overwrite it later. af->data should
alwass contain the output format, and the existing code was just a very
misguided use of the af_test_output() helper function.
Just set af->data to the output format immediately, and modify the input
format properly.
Also, if format negotiation fails (and needs another iteration), don't
initialize the libavcodec encoder.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions