Mercurial > libavformat.hg
changeset 1402:23541e51b7ca libavformat
dont mess with ByteIOContext internal variables (fixes showdown2.mov)
author | michael |
---|---|
date | Thu, 19 Oct 2006 10:05:36 +0000 |
parents | e4a89160a011 |
children | 1973528c6975 |
files | mov.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mov.c Wed Oct 18 15:10:14 2006 +0000 +++ b/mov.c Thu Oct 19 10:05:36 2006 +0000 @@ -1348,7 +1348,7 @@ #ifdef CONFIG_ZLIB static int null_read_packet(void *opaque, uint8_t *buf, int buf_size) { - return -1; + return buf_size; } static int mov_read_cmov(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) @@ -1385,7 +1385,6 @@ return -1; if(init_put_byte(&ctx, moov_data, moov_len, 0, NULL, null_read_packet, NULL, NULL) != 0) return -1; - ctx.buf_end = ctx.buffer + moov_len; atom.type = MKTAG( 'm', 'o', 'o', 'v' ); atom.offset = 0; atom.size = moov_len;