git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac34ee
)
g726dec: remove the sample_rate validation
author
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 28 Oct 2011 00:22:14 +0000
(20:22 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 2 Nov 2011 01:23:03 +0000
(21:23 -0400)
libavcodec/g726.c
patch
|
blob
|
history
diff --git
a/libavcodec/g726.c
b/libavcodec/g726.c
index
3392811
..
b17d578
100644
(file)
--- a/
libavcodec/g726.c
+++ b/
libavcodec/g726.c
@@
-366,11
+366,6
@@
static av_cold int g726_decode_init(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
- if (avctx->sample_rate <= 0) {
- av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
- return -1;
- }
-
if(avctx->channels != 1){
av_log(avctx, AV_LOG_ERROR, "Only mono is supported\n");
return -1;