diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-01-28 11:12:58 -0800 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2014-01-28 11:12:58 -0800 |
commit | 5260b39e5fd632858f98aed250427633307a64ad (patch) | |
tree | e43eb09def5bce3b8dd4df6ba6d2020046fcd463 /y4menc.h | |
parent | f9f936b82fae6c5eeca4d793ef9c94ed498dc409 (diff) | |
download | libvpx-5260b39e5fd632858f98aed250427633307a64ad.tar libvpx-5260b39e5fd632858f98aed250427633307a64ad.tar.gz libvpx-5260b39e5fd632858f98aed250427633307a64ad.tar.bz2 libvpx-5260b39e5fd632858f98aed250427633307a64ad.zip |
vpxdec: restoring old md5 behavior for y4m files.
Fix of https://code.google.com/p/webm/issues/detail?id=698 issue.
Change-Id: I7a92d91481dbbae28d8953f146e9faafdcd7a310
Diffstat (limited to 'y4menc.h')
-rw-r--r-- | y4menc.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -11,8 +11,6 @@ #ifndef Y4MENC_H_ #define Y4MENC_H_ -#include <stdio.h> - #include "./tools_common.h" #include "vpx/vpx_decoder.h" @@ -21,12 +19,12 @@ extern "C" { #endif -void y4m_write_file_header(FILE *file, int width, int height, - const struct VpxRational *framerate, - vpx_img_fmt_t fmt); - -void y4m_write_frame_header(FILE *file); +#define Y4M_BUFFER_SIZE 128 +int y4m_write_file_header(char *buf, size_t len, int width, int height, + const struct VpxRational *framerate, + vpx_img_fmt_t fmt); +int y4m_write_frame_header(char *buf, size_t len); #ifdef __cplusplus } // extern "C" |