📄 h263free.c
字号:
/******************************************************************************
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright (c) 2003 Intel Corporation. All Rights Reserved.
//
// Description:
// Intel(R) Integrated Performance Primitives Sample Code H263 Decoder
//
// Function List
// decoder_free_h263()
//
******************************************************************************/
#include "samph263.h"
#include <stdlib.h>
#include <string.h>
/******************************************************************************
// Function Name: decoder_free_h263
//
// Description: Free allocated memory buffer and set the pointer to NULL.
// This function is called after all pictures are decoded.
//
// Parameter:
// Input:
// state: Pointer to h263_dec_state structure holding decode status
// Output:
// state: Pointer to h263_dec_state structure holding decode status
//
// Return:
// sample_status:
// [SAMPLE_STATUS_NOERR]: Succeeds
//
// Notes: None
******************************************************************************/
sample_status decoder_free_h263(h263_dec_state *state)
{
if(NULL != state->work_buf) {
free(state->work_buf);
}
state->work_buf = NULL;
return SAMPLE_STATUS_NOERR;
}
/* EOF */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -