From 146210caf9cf95a35f660199ba5b0aa850fc18d7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 24 Oct 2004 22:39:08 +0000 Subject: [PATCH] image2pipe fix Originally committed as revision 3635 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/img2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/img2.c b/libavformat/img2.c index 7619d7fbc8..3530cffdb3 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -37,6 +37,7 @@ static const IdStrMap img_tags[] = { { CODEC_ID_MJPEG , "jpeg"}, { CODEC_ID_MJPEG , "jpg"}, { CODEC_ID_LJPEG , "ljpg"}, +// { CODEC_ID_PNG , "png"}, { CODEC_ID_MPEG1VIDEO, "mpg1-img"}, { CODEC_ID_MPEG2VIDEO, "mpg2-img"}, { CODEC_ID_MPEG4 , "mpg4-img"}, @@ -153,8 +154,10 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap) /* find format */ if (s1->iformat->flags & AVFMT_NOFILE) s->is_pipe = 0; - else + else{ s->is_pipe = 1; + st->need_parsing= 1; + } if (!ap || !ap->frame_rate) { st->codec.frame_rate = 25;