Browse Source

png: Minor whitespace change and added missing comment

Signed-off-by: Donny Yang <work@kota.moe>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Donny Yang Michael Niedermayer 11 years ago
parent
commit
fe57514f8a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pngenc.c

+ 1
- 1
libavcodec/pngenc.c View File

@@ -399,9 +399,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->buf[10] = 0; /* compression type */ s->buf[10] = 0; /* compression type */
s->buf[11] = 0; /* filter type */ s->buf[11] = 0; /* filter type */
s->buf[12] = is_progressive; /* interlace type */ s->buf[12] = is_progressive; /* interlace type */

png_write_chunk(&s->bytestream, MKTAG('I', 'H', 'D', 'R'), s->buf, 13); png_write_chunk(&s->bytestream, MKTAG('I', 'H', 'D', 'R'), s->buf, 13);


/* write physical information */
if (s->dpm) { if (s->dpm) {
AV_WB32(s->buf, s->dpm); AV_WB32(s->buf, s->dpm);
AV_WB32(s->buf + 4, s->dpm); AV_WB32(s->buf + 4, s->dpm);


Loading…
Cancel
Save