mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
pcmenc: remove unneeded sample_fmt check.
It is already checked by avcodec_open2().
This commit is contained in:
parent
d94e29cac9
commit
06af335a33
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user