[FFmpeg-devel] [PATCH] image2 bugfix for image2pipe

Michael Niedermayer michaelni
Tue May 26 14:27:17 CEST 2009


On Tue, May 26, 2009 at 01:21:46PM +0200, Peter Holik wrote:
> Hi!
> 
> 
> ffmpeg -i a.png b.png
> ffmpeg -f image2 -i a.png b.png
> ffmpeg -f image2 -vcodec png -i a.png b.png
> 
> works but
> 
> ffmpeg -f image2pipe -vcodec png -i a.png b.png
> 
> won't work because only 4096 bytes are returned from img_read_packet.
> 
> My patch now returns the whole image.
> 
> 
> Request for comment.
[...]

> -        /* loop over input */
> -        if (s1->loop_input && s->img_number > s->img_last) {
> -            s->img_number = s->img_first;
> -        }
> -        if (av_get_frame_filename(filename, sizeof(filename),
> -                                  s->path, s->img_number)<0 && s->img_number > 1)
> +    /* loop over input */
> +    if (s1->loop_input && s->img_number > s->img_last) {
> +        s->img_number = s->img_first;
> +    }
> +    if (av_get_frame_filename(filename, sizeof(filename),
> +                              s->path, s->img_number)<0 && s->img_number > 1)

cosmetics

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090526/e54a1b2a/attachment.pgp>



More information about the ffmpeg-devel mailing list