]> git.sesse.net Git - ffmpeg/commit
avcodec/nellymoserenc: Fix segfault when using unsupported channels/rate
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 15 Apr 2021 13:48:34 +0000 (15:48 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 15 Apr 2021 16:15:57 +0000 (18:15 +0200)
commit652279e35becae7b4c0b6b73e4f6c074e8a8b77c
tree192e8eee3034b04e2e110d10fedb81bb6f91633c
parent918273aa3eb721323ec2de37a39ad8ce9f4dcfb7
avcodec/nellymoserenc: Fix segfault when using unsupported channels/rate

NellyMoserEncodeContext.avctx is only set in init after these checks,
yet it is used by encode_end().
This is a regression since 0a56bfa71f751a2b25da8d060a019c1c75ca9d7b.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/nellymoserenc.c