<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div dir="ltr" data-setdir="false">Dear Sir/Madama,</div><div dir="ltr" data-setdir="false">I'm using ffmpeg 4.3.1 on Ubuntu 20.04 system. I stream video from different cameras in multi layout. With software decoding it works fine. When I use hardware decoding (by referring <span>vaapi_transcode.c it works initially. If I keep on changing the layout which closes and opens the decoder, it crashes with error </span> <span>-542398533. I figured out that it is <span>generic error in an external library</span></span>.</div><div dir="ltr" data-setdir="false">Looks like some issue with continuous decoder open/close operation. <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span></span><span><span>AVCodecContext is created using </span>avcodec_alloc_context3 and while closing <span>avcodec_free_context() and <span>av_buffer_unref() is used.</span></span></span></div><div><br></div><div dir="ltr" data-setdir="false">Am I missing anything? Help in this regard will be appreciated.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank You<br></div><div dir="ltr" data-setdir="false"><span><span><span>Latha</span></span></span><br></div></div></body></html>