Mercurial > libavformat.hg
changeset 581:03377d4de76a libavformat
porting png support from -f image to -f image2
author | michael |
---|---|
date | Tue, 09 Nov 2004 23:31:46 +0000 |
parents | 4f2b5cb90216 |
children | c5ff083848b4 |
files | img2.c utils.c |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/img2.c Tue Nov 09 17:27:33 2004 +0000 +++ b/img2.c Tue Nov 09 23:31:46 2004 +0000 @@ -37,7 +37,7 @@ { CODEC_ID_MJPEG , "jpeg"}, { CODEC_ID_MJPEG , "jpg"}, { CODEC_ID_LJPEG , "ljpg"}, -// { CODEC_ID_PNG , "png"}, + { CODEC_ID_PNG , "png"}, { CODEC_ID_MPEG1VIDEO, "mpg1-img"}, { CODEC_ID_MPEG2VIDEO, "mpg2-img"}, { CODEC_ID_MPEG4 , "mpg4-img"},
--- a/utils.c Tue Nov 09 17:27:33 2004 +0000 +++ b/utils.c Tue Nov 09 23:31:46 2004 +0000 @@ -1739,6 +1739,7 @@ st->codec.codec_id == CODEC_ID_H263 || st->codec.codec_id == CODEC_ID_VORBIS || st->codec.codec_id == CODEC_ID_MJPEG || + st->codec.codec_id == CODEC_ID_PNG || (st->codec.codec_id == CODEC_ID_MPEG4 && !st->need_parsing))) try_decode_frame(st, pkt->data, pkt->size);