summaryrefslogtreecommitdiffstats
path: root/audio/audio_buffer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-11 12:08:11 +0100
committerwm4 <wm4@nowhere>2013-11-12 23:34:37 +0100
commita72072c6059d8c9661e58346359231c694ced968 (patch)
treef0dad7ddb5a920b166a59bc2a76e7a1246ecf60a /audio/audio_buffer.c
parent824e6550f8ef1f361701eae469ada35d3889ab83 (diff)
downloadmpv-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 'audio/audio_buffer.c')
0 files changed, 0 insertions, 0 deletions