summaryrefslogtreecommitdiff
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-09-27 19:52:50 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-26 12:01:07 -0400
commit06af335a33a771bad05dc1873c3f9d8e84abfb45 (patch)
treea71ce686eeb2eba7920ddb28c268f96f55546b2a /libavcodec/pcm.c
parentd94e29cac94d1f938cf3a25320522cc9de0a6b86 (diff)
pcmenc: remove unneeded sample_fmt check.
It is already checked by avcodec_open2().
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r--libavcodec/pcm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 2a50a8146d..e7cf874f44 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -95,11 +95,6 @@ static int pcm_encode_frame(AVCodecContext *avctx,
samples = data;
dst = frame;
- if (avctx->sample_fmt!=avctx->codec->sample_fmts[0]) {
- av_log(avctx, AV_LOG_ERROR, "invalid sample_fmt\n");
- return -1;
- }
-
switch(avctx->codec->id) {
case CODEC_ID_PCM_U32LE:
ENCODE(uint32_t, le32, samples, dst, n, 0, 0x80000000)