Mercurial > libavformat.hg
changeset 2032:af6110a58658 libavformat
init packet before calling the demuxer
fixed random/uninitalized AVPacket->pos
author | michael |
---|---|
date | Sun, 22 Apr 2007 11:07:35 +0000 |
parents | d3c1ef5b9a2f |
children | 1f882c0d0b79 |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sun Apr 22 00:50:36 2007 +0000 +++ b/utils.c Sun Apr 22 11:07:35 2007 +0000 @@ -484,6 +484,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt) { + av_init_packet(pkt); return s->iformat->read_packet(s, pkt); } @@ -702,6 +703,8 @@ AVStream *st; int len, ret, i; + av_init_packet(pkt); + for(;;) { /* select current input stream component */ st = s->cur_st;