mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc: Add device context field to AVCodecContext
For use by codec implementations which can allocate frames internally.
This commit is contained in:
parent
07b5136c48
commit
44f2eda39f
4 changed files with 29 additions and 2 deletions
|
|
@ -794,6 +794,7 @@ av_cold int avcodec_close(AVCodecContext *avctx)
|
|||
avctx->nb_coded_side_data = 0;
|
||||
|
||||
av_buffer_unref(&avctx->hw_frames_ctx);
|
||||
av_buffer_unref(&avctx->hw_device_ctx);
|
||||
|
||||
if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)
|
||||
av_opt_free(avctx->priv_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue