mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
pcmdec: remove unneeded resetting of samples pointer
This commit is contained in:
parent
06d4e2fa5a
commit
c1848c4b26
@ -382,7 +382,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
|
|||||||
#endif /* HAVE_BIGENDIAN */
|
#endif /* HAVE_BIGENDIAN */
|
||||||
case CODEC_ID_PCM_U8:
|
case CODEC_ID_PCM_U8:
|
||||||
memcpy(samples, src, n*sample_size);
|
memcpy(samples, src, n*sample_size);
|
||||||
samples += n * sample_size;
|
|
||||||
break;
|
break;
|
||||||
case CODEC_ID_PCM_ZORK:
|
case CODEC_ID_PCM_ZORK:
|
||||||
for (; n > 0; n--) {
|
for (; n > 0; n--) {
|
||||||
@ -428,7 +427,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
samples = (uint8_t *) dst_int32_t;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CODEC_ID_PCM_LXF:
|
case CODEC_ID_PCM_LXF:
|
||||||
@ -451,7 +449,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
|
|||||||
((src8[2] & 0xF0) << 8) | (src8[4] << 4) | (src8[3] >> 4);
|
((src8[2] & 0xF0) << 8) | (src8[4] << 4) | (src8[3] >> 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
samples = (uint8_t *) dst_int32_t;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user