mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avcodec/pngenc: don't return a value in a void function
Should fix compilation failures with strict compilers Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0bf980919e
commit
3000183732
@ -229,8 +229,10 @@ static void png_write_image_data(AVCodecContext *avctx,
|
||||
const AVCRC *crc_table = av_crc_get_table(AV_CRC_32_IEEE_LE);
|
||||
uint32_t crc = ~0U;
|
||||
|
||||
if (avctx->codec_id == AV_CODEC_ID_PNG || avctx->frame_number == 0)
|
||||
return png_write_chunk(&s->bytestream, MKTAG('I', 'D', 'A', 'T'), buf, length);
|
||||
if (avctx->codec_id == AV_CODEC_ID_PNG || avctx->frame_number == 0) {
|
||||
png_write_chunk(&s->bytestream, MKTAG('I', 'D', 'A', 'T'), buf, length);
|
||||
return;
|
||||
}
|
||||
|
||||
bytestream_put_be32(&s->bytestream, length + 4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user