Author: bwolowiec
Date: Mon Aug 17 11:06:36 2009
New Revision: 5156
Log:
Remove unneeded check.
Modified:
spdif/spdif.c
Modified: spdif/spdif.c
==============================================================================
--- spdif/spdif.c Mon Aug 17 10:53:52 2009 (r5155)
+++ spdif/spdif.c Mon Aug 17 11:06:36 2009 (r5156)
@@ -260,11 +260,9 @@ static int spdif_write_packet(struct AVF
#if HAVE_BIGENDIAN
put_buffer(s->pb, pkt->data, pkt->size & ~1);
#else
- if (ctx->buffer_size < pkt->size) {
av_fast_malloc(&ctx->buffer, &ctx->buffer_size, pkt->size +
FF_INPUT_BUFFER_PADDING_SIZE);
if (!ctx->buffer)
return AVERROR(ENOMEM);
- }
bswap_buf16((uint16_t *)ctx->buffer, (uint16_t *)pkt->data, pkt->size >>
1);
put_buffer(s->pb, ctx->buffer, pkt->size & ~1);
#endif
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc