changeset 574:955ca987adbd libavformat

image2pipe fix
author michael
date Sun, 24 Oct 2004 22:39:08 +0000
parents b3adf6716dc3
children b7680f41ade9
files img2.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/img2.c	Sun Oct 24 13:07:59 2004 +0000
+++ b/img2.c	Sun Oct 24 22:39:08 2004 +0000
@@ -37,6 +37,7 @@
     { 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 @@
     /* 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;