]> git.sesse.net Git - ffmpeg/commit
sbc: do not set sample format in parser
authorArnaud Vrac <avrac@freebox.fr>
Tue, 5 Jan 2021 12:47:43 +0000 (13:47 +0100)
committerJames Almer <jamrial@gmail.com>
Sat, 9 Jan 2021 18:24:32 +0000 (15:24 -0300)
commit29993b2947a99806cf41dd58853af510b0ce152c
tree4c0cd553de553410f0c0c1844a61af497d424594
parenteacad3406e3e772558642d342e87892c3338eb4e
sbc: do not set sample format in parser

Commit bdd31feec934 changed the SBC decoder to only set the output
sample format on init, instead of setting it explicitly on each frame,
which is correct. But the SBC parser overrides the sample format to S16,
which triggers a crash when combining the parser and the decoder.

Fix the issue by not setting the sample format anymore in the parser,
which is wrong.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/sbc_parser.c