mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-03-02 17:56:30 +00:00
add ffmpeg bug fix
Signed-off-by: gao_ziyu <gaoziyu@huawei.com>
This commit is contained in:
parent
deeb96cd5b
commit
334cc16db2
@ -800,7 +800,7 @@ int ff_dxva2_commit_buffer(AVCodecContext *avctx,
|
||||
unsigned type, const void *data, unsigned size,
|
||||
unsigned mb_count)
|
||||
{
|
||||
void *dxva_data;
|
||||
void *dxva_data = NULL;
|
||||
unsigned dxva_size;
|
||||
int result;
|
||||
HRESULT hr = 0;
|
||||
@ -822,7 +822,7 @@ int ff_dxva2_commit_buffer(AVCodecContext *avctx,
|
||||
type, (unsigned)hr);
|
||||
return -1;
|
||||
}
|
||||
if (size <= dxva_size) {
|
||||
if (dxva_data && size <= dxva_size) {
|
||||
memcpy(dxva_data, data, size);
|
||||
|
||||
#if CONFIG_D3D11VA
|
||||
|
Loading…
x
Reference in New Issue
Block a user