Browse Source

lavf/swfdec: fix flushing with compressed swf.

We now only return in the middle of the refill in case of read error, so
inflate can be re-called if zlib needs an empty (z.avail_in=0) inflate
call for flushing.
tags/n1.1
Clément Bœsch 13 years ago
parent
commit
0c40220b9d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/swfdec.c

+ 1
- 1
libavformat/swfdec.c View File

@@ -71,7 +71,7 @@ static int zlib_refill(void *opaque, uint8_t *buf, int buf_size)
retry:
if (!z->avail_in) {
int n = avio_read(s->pb, swf->zbuf_in, ZBUF_SIZE);
if (n <= 0)
if (n < 0)
return n;
z->next_in = swf->zbuf_in;
z->avail_in = n;


Loading…
Cancel
Save