---
title: DestroyVideoDecoder
description: "销毁解码器实例。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/240RC2/armnative/kunpengcpsvideo_16_0069.html
sourcePath: /source/zh/kunpengboostkithistory/240RC2/armnative/kunpengcpsvideo_16_0069.html
indexId: 821927894bfd8204d9a61ef62f168c1d8403450fd7ea8de6cefa663088a759f679
---
# DestroyVideoDecoder

#### 函数功能

销毁解码器实例。


#### 约束说明

NA


#### 函数原型

DecoderRetCode DestroyVideoDecoder(VideoDecoder *decoder)


#### 参数说明

| 参数名称 | 输入/输出 | 参数类型 | 参数描述 |
| --- | --- | --- | --- |
| decoder | 输入 | VideoDecoder \* | 要销毁的解码器实例指针。 |


#### 返回值说明

数据类型：DecoderRetCode

取值如下：

- VIDEO_DECODER_SUCCESS：销毁解码器实例成功。
- VIDEO_DECODER_DESTROY_FAIL：销毁解码器实例失败。


#### VideoDecoder接口类涉及接口

VideoDecoder接口类涉及接口详细描述请参见CreateDecoder、InitDecoder、SetDecodeParams、GetDecodeParams、SetCallbacks、SetCopyFrameFunc、SendStreamData、FlushStartDecoder、StopDecoder、DestroyDecoder。
