Replace it with avcodec_free_context() or drop it completely as appropriate.
Attach a file by drag & drop or click to upload