summaryrefslogtreecommitdiff
path: root/libavcodec/pngenc.c
diff options
context:
space:
mode:
authorDonny Yang <work@kota.moe>2015-03-28 15:14:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-03-28 17:16:55 +0100
commitfe57514f8a665d95091bd2da607d99043e6c7fc2 (patch)
tree8f23d89d1348c22b00d8a179701df07e7fe55b9f /libavcodec/pngenc.c
parent5904d039ce785e0b9b28f8664c6fc493c60f6e8d (diff)
downloadffmpeg-fe57514f8a665d95091bd2da607d99043e6c7fc2.tar.gz
png: Minor whitespace change and added missing comment
Signed-off-by: Donny Yang <work@kota.moe> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r--libavcodec/pngenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 0231bf7c3b..d6233d0dc4 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -399,9 +399,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->buf[10] = 0; /* compression type */
s->buf[11] = 0; /* filter type */
s->buf[12] = is_progressive; /* interlace type */
-
png_write_chunk(&s->bytestream, MKTAG('I', 'H', 'D', 'R'), s->buf, 13);
+ /* write physical information */
if (s->dpm) {
AV_WB32(s->buf, s->dpm);
AV_WB32(s->buf + 4, s->dpm);