Mercurial > libavformat.hg
changeset 2766:1d31f550e6d7 libavformat
Cosmetics
author | rtogni |
---|---|
date | Mon, 19 Nov 2007 00:02:58 +0000 |
parents | 7f8b30acb7c7 |
children | 59fb7b65fcc6 |
files | rmdec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Mon Nov 19 00:02:03 2007 +0000 +++ b/rmdec.c Mon Nov 19 00:02:58 2007 +0000 @@ -501,9 +501,8 @@ rm->curpic_num = pic_num; rm->pktpos = url_ftell(pb); } - if(type == 2){ + if(type == 2) len = FFMIN(len, pos); - } if(++rm->cur_slice > rm->slices) return 1; @@ -521,7 +520,8 @@ if(av_new_packet(pkt, rm->videobufpos - 8*(rm->slices - rm->cur_slice)) < 0) return AVERROR(ENOMEM); memcpy(pkt->data, rm->videobuf, 1 + 8*rm->cur_slice); - memcpy(pkt->data + 1 + 8*rm->cur_slice, rm->videobuf + 1 + 8*rm->slices, rm->videobufpos - 1 - 8*rm->slices); + memcpy(pkt->data + 1 + 8*rm->cur_slice, rm->videobuf + 1 + 8*rm->slices, + rm->videobufpos - 1 - 8*rm->slices); pkt->pts = AV_NOPTS_VALUE; pkt->pos = rm->pktpos; return 0;