summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-10-24 22:39:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-24 22:39:08 +0000
commit146210caf9cf95a35f660199ba5b0aa850fc18d7 (patch)
treeb5c186ed6e594bd5f62b80e7d8dbcd9ac949596f /libavformat
parent8e6325b96bc6203f18fdb19912fcde2a6527fc71 (diff)
downloadffmpeg-streaming-146210caf9cf95a35f660199ba5b0aa850fc18d7.zip
ffmpeg-streaming-146210caf9cf95a35f660199ba5b0aa850fc18d7.tar.gz
image2pipe fix
Originally committed as revision 3635 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/img2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 7619d7f..3530cff 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;
OpenPOWER on IntegriCloud