diff options
author | Andreas Rheinhardt <[email protected]> | 2021-04-04 21:30:33 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2021-04-08 11:56:35 +0200 |
commit | 4562719c7d598e3efa884af23b1dd127287011b8 (patch) | |
tree | 88f4a6846e44ffb8bc7f46647141190170f7d7a0 /libavcodec/latm_parser.c | |
parent | 6d7dfabfb071f10cfdc5183dc9d48eb7992c0209 (diff) |
avcodec/rv10: Don't presume context to be initialized
In case of resolution changes rv20_decode_picture_header() closes and
reopens its MpegEncContext; it checks the latter for errors, yet when
an error happens, it might happen that no new attempt at
reinitialization is performed when decoding the next frame; this leads
to crashes lateron.
This commit fixes this by making sure that initialization will always
be attempted if the context is currently not initialized.
Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
(cherry picked from commit 8ffd3ef9d94f33b411348c594a49d994b55c9550)
Diffstat (limited to 'libavcodec/latm_parser.c')
0 files changed, 0 insertions, 0 deletions