diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-21 03:23:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-21 03:37:05 +0200 |
commit | 10d2ae8cf78ed7e23c6342200fa4d8a5355e87f2 (patch) | |
tree | ad169614a86989dbb4ead1e188d2ad71ef7bfcf7 /libavutil | |
parent | 2c18893a911657205bd45ff8a666882610e57700 (diff) | |
parent | f83acb096c0ea1ec181941c141d1ab6fb24820eb (diff) | |
download | ffmpeg-10d2ae8cf78ed7e23c6342200fa4d8a5355e87f2.tar.gz |
Merge remote branch 'qatar/master'
* qatar/master:
Makefile: Include dependencies for test tools, too
Remove a version check in av_log made unnecessary by the big bump.
update last major version increase dates in APIchanges
Reduce picture size for yadif.
oggdec: use av_freep() instead of av_free()
avio: Fix sanity checks in ffurl_read*
libavformat: Free AVFormatContext->streams
libavformat: Make protocols pass URLContext as log context where available
asf: remove commented out code in asf_read_seek
not pulled: libpostproc: Remove crufty code disabled by the big bump.
Reflect 0.7_beta1 release in the Changelog
not pulled: sws: remove disabled cruft.
lavu: remove disabled ff_random_get_seed cruft.
lavu: remove disabled sha1 cruft.
Conflicts:
Changelog
libavutil/sha1.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/Makefile | 1 | ||||
-rw-r--r-- | libavutil/log.c | 2 | ||||
-rw-r--r-- | libavutil/random_seed.c | 8 | ||||
-rw-r--r-- | libavutil/sha.c | 24 | ||||
-rw-r--r-- | libavutil/sha1.h | 57 |
5 files changed, 1 insertions, 91 deletions
diff --git a/libavutil/Makefile b/libavutil/Makefile index baee496e7c..8c3cc60dab 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -35,7 +35,6 @@ HEADERS = adler32.h \ rational.h \ samplefmt.h \ sha.h \ - sha1.h \ BUILT_HEADERS = avconfig.h diff --git a/libavutil/log.c b/libavutil/log.c index d7daaa2706..c9a4f7f9aa 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -100,7 +100,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) line[0]=0; #undef fprintf if(print_prefix && avc) { - if(avc->version >= (50<<16 | 15<<8 | 3) && avc->parent_log_context_offset){ + if (avc->parent_log_context_offset) { AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset); if(parent && *parent){ snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent); diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index db1ba39cf2..6d19b1a9fe 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -80,11 +80,3 @@ uint32_t av_get_random_seed(void) return seed; return get_generic_seed(); } - -#if LIBAVUTIL_VERSION_MAJOR < 51 -attribute_deprecated uint32_t ff_random_get_seed(void); -uint32_t ff_random_get_seed(void) -{ - return av_get_random_seed(); -} -#endif diff --git a/libavutil/sha.c b/libavutil/sha.c index 2657f7eb90..ff9e55720f 100644 --- a/libavutil/sha.c +++ b/libavutil/sha.c @@ -25,7 +25,6 @@ #include "avutil.h" #include "bswap.h" #include "sha.h" -#include "sha1.h" #include "intreadwrite.h" /** hash context */ @@ -324,29 +323,6 @@ void av_sha_final(AVSHA* ctx, uint8_t *digest) AV_WB32(digest + i*4, ctx->state[i]); } -#if LIBAVUTIL_VERSION_MAJOR < 51 -struct AVSHA1 { - AVSHA sha; -}; - -const int av_sha1_size = sizeof(struct AVSHA1); - -void av_sha1_init(struct AVSHA1* context) -{ - av_sha_init(&context->sha, 160); -} - -void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int len) -{ - av_sha_update(&context->sha, data, len); -} - -void av_sha1_final(struct AVSHA1* context, uint8_t digest[20]) -{ - av_sha_final(&context->sha, digest); -} -#endif - #ifdef TEST #include <stdio.h> #undef printf diff --git a/libavutil/sha1.h b/libavutil/sha1.h deleted file mode 100644 index 3ff58043ea..0000000000 --- a/libavutil/sha1.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2007 Michael Niedermayer <michaelni@gmx.at> - * - * This file is part of FFmpeg. - * - * FFmpeg is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * FFmpeg is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef AVUTIL_SHA1_H -#define AVUTIL_SHA1_H - -#include <stdint.h> - -extern const int av_sha1_size; - -struct AVSHA1; - -/** - * Initialize SHA-1 hashing. - * - * @param context pointer to the function context (of size av_sha_size) - * @deprecated use av_sha_init() instead - */ -void av_sha1_init(struct AVSHA1* context); - -/** - * Update hash value. - * - * @param context hash function context - * @param data input data to update hash with - * @param len input data length - * @deprecated use av_sha_update() instead - */ -void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int len); - -/** - * Finish hashing and output digest value. - * - * @param context hash function context - * @param digest buffer where output digest value is stored - * @deprecated use av_sha_final() instead - */ -void av_sha1_final(struct AVSHA1* context, uint8_t digest[20]); - -#endif /* AVUTIL_SHA1_H */ |