diff options
author | James Berry <jamesberry@google.com> | 2011-06-22 12:41:17 -0400 |
---|---|---|
committer | James Berry <jamesberry@google.com> | 2011-06-22 13:36:24 -0400 |
commit | 2bd90c13a04fddddc4379688eab6b6132aabe933 (patch) | |
tree | 27a74befb909b435043eb8a9c2e7fcff05b80056 /vp8/common/onyxd.h | |
parent | 76495617e05d7192f887c688fa177fea77b9469b (diff) | |
download | libvpx-2bd90c13a04fddddc4379688eab6b6132aabe933.tar libvpx-2bd90c13a04fddddc4379688eab6b6132aabe933.tar.gz libvpx-2bd90c13a04fddddc4379688eab6b6132aabe933.tar.bz2 libvpx-2bd90c13a04fddddc4379688eab6b6132aabe933.zip |
get/set reference buffer dimension check added
vp8_yv12_copy_frame_ptr() expects same size
buffers which was not previously gaurenteed.
Using an improperly allocated buffer would
cause a crash before.
Change-Id: I904982313ce9352474f80de842013dcd89f48685
Diffstat (limited to 'vp8/common/onyxd.h')
-rw-r--r-- | vp8/common/onyxd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vp8/common/onyxd.h b/vp8/common/onyxd.h index 140dc5728..cf16a26da 100644 --- a/vp8/common/onyxd.h +++ b/vp8/common/onyxd.h @@ -22,6 +22,7 @@ extern "C" #include "vpx_scale/yv12config.h" #include "ppflags.h" #include "vpx_ports/mem.h" +#include "vpx/vpx_codec.h" typedef void *VP8D_PTR; typedef struct @@ -54,8 +55,8 @@ extern "C" int vp8dx_receive_compressed_data(VP8D_PTR comp, unsigned long size, const unsigned char *dest, INT64 time_stamp); int vp8dx_get_raw_frame(VP8D_PTR comp, YV12_BUFFER_CONFIG *sd, INT64 *time_stamp, INT64 *time_end_stamp, vp8_ppflags_t *flags); - int vp8dx_get_reference(VP8D_PTR comp, VP8_REFFRAME ref_frame_flag, YV12_BUFFER_CONFIG *sd); - int vp8dx_set_reference(VP8D_PTR comp, VP8_REFFRAME ref_frame_flag, YV12_BUFFER_CONFIG *sd); + vpx_codec_err_t vp8dx_get_reference(VP8D_PTR comp, VP8_REFFRAME ref_frame_flag, YV12_BUFFER_CONFIG *sd); + vpx_codec_err_t vp8dx_set_reference(VP8D_PTR comp, VP8_REFFRAME ref_frame_flag, YV12_BUFFER_CONFIG *sd); VP8D_PTR vp8dx_create_decompressor(VP8D_CONFIG *oxcf); |