diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2014-01-03 11:47:57 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2014-01-03 11:47:57 -0800 |
commit | f215c641bb0e3245302fe60e6f98a4583da59c54 (patch) | |
tree | 6b8d7dc7796e6c574cdbebc8becc56f31762b463 /vpxdec.c | |
parent | f16b186b8ead1ff7ddac7d3d00b3bab2f829c946 (diff) | |
parent | d24f4e49c104c2489bc1e6402370170e1762cddf (diff) | |
download | libvpx-f215c641bb0e3245302fe60e6f98a4583da59c54.tar libvpx-f215c641bb0e3245302fe60e6f98a4583da59c54.tar.gz libvpx-f215c641bb0e3245302fe60e6f98a4583da59c54.tar.bz2 libvpx-f215c641bb0e3245302fe60e6f98a4583da59c54.zip |
Merge changes Ic0a2427a,I3addbf6d
* changes:
Removing CONFIG_MD5.
Using VP9_FRAME_MARKER instead of raw number.
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -29,9 +29,7 @@ #include "vpx/vp8dx.h" #endif -#if CONFIG_MD5 #include "./md5_utils.h" -#endif #include "./tools_common.h" #include "./webmdec.h" @@ -95,17 +93,14 @@ static const arg_def_t fb_lru_arg = ARG_DEF(NULL, "frame-buffers-lru", 1, "Turn on/off frame buffer lru"); -#if CONFIG_MD5 static const arg_def_t md5arg = ARG_DEF(NULL, "md5", 0, "Compute the MD5 sum of the decoded frame"); -#endif + static const arg_def_t *all_args[] = { &codecarg, &use_yv12, &use_i420, &flipuvarg, &noblitarg, &progressarg, &limitarg, &skiparg, &postprocarg, &summaryarg, &outputfile, &threadsarg, &verbosearg, &scalearg, &fb_arg, &fb_lru_arg, -#if CONFIG_MD5 &md5arg, -#endif &error_concealment, NULL }; @@ -236,11 +231,9 @@ void *out_open(const char *out_fn, int do_md5) { void *out = NULL; if (do_md5) { -#if CONFIG_MD5 MD5Context *md5_ctx = out = malloc(sizeof(MD5Context)); (void)out_fn; MD5Init(md5_ctx); -#endif } else { FILE *outfile = out = strcmp("-", out_fn) ? fopen(out_fn, "wb") : set_binary_mode(stdout); @@ -255,9 +248,7 @@ void *out_open(const char *out_fn, int do_md5) { void out_put(void *out, const uint8_t *buf, unsigned int len, int do_md5) { if (do_md5) { -#if CONFIG_MD5 MD5Update(out, buf, len); -#endif } else { (void) fwrite(buf, 1, len, out); } @@ -265,7 +256,6 @@ void out_put(void *out, const uint8_t *buf, unsigned int len, int do_md5) { void out_close(void *out, const char *out_fn, int do_md5) { if (do_md5) { -#if CONFIG_MD5 uint8_t md5[16]; int i; @@ -276,7 +266,6 @@ void out_close(void *out, const char *out_fn, int do_md5) { printf("%02x", md5[i]); printf(" %s\n", out_fn); -#endif } else { fclose(out); } |