| 812 | } |
| 813 | |
| 814 | int ff_hw_base_encode_close(FFHWBaseEncodeContext *ctx) |
| 815 | { |
| 816 | for (FFHWBaseEncodePicture *pic = ctx->pic_start, *next_pic = pic; pic; pic = next_pic) { |
| 817 | next_pic = pic->next; |
| 818 | base_encode_pic_free(pic); |
| 819 | } |
| 820 | |
| 821 | av_fifo_freep2(&ctx->encode_fifo); |
| 822 | |
| 823 | av_frame_free(&ctx->frame); |
| 824 | av_packet_free(&ctx->tail_pkt); |
| 825 | |
| 826 | av_buffer_unref(&ctx->device_ref); |
| 827 | av_buffer_unref(&ctx->input_frames_ref); |
| 828 | av_buffer_unref(&ctx->recon_frames_ref); |
| 829 | |
| 830 | return 0; |
| 831 | } |
no test coverage detected