I.e. free the priv_data and other stuff allocated in avcodec_alloc_context3() and not segfault.
Attach a file by drag & drop or click to upload