diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-09-28 21:09:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-09-28 21:09:25 +0000 |
commit | 63dd1377b3197ca093e1489045f7bfec1003ab69 (patch) | |
tree | d1e9664d4f0abaefb60fdc9857fd80b27735d2b5 /libavformat/utils.c | |
parent | 58978c070ac950bd9b8f11b594af7cd454ed0d3b (diff) | |
download | ffmpeg-63dd1377b3197ca093e1489045f7bfec1003ab69.tar.gz |
uninitalized variables
Originally committed as revision 3534 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index b31f4c236a..ed8f58342d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -413,6 +413,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename, must_open_file = 1; if (fmt && (fmt->flags & AVFMT_NOFILE)) { must_open_file = 0; + pb= NULL; //FIXME this or memset(pb, 0, sizeof(ByteIOContext)); otherwise its uninitalized } if (!fmt || must_open_file) { @@ -679,7 +680,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, pkt->duration = av_rescale(pkt->duration, AV_TIME_BASE * (int64_t)st->time_base.num, st->time_base.den); } -static void av_destruct_packet_nofree(AVPacket *pkt) +void av_destruct_packet_nofree(AVPacket *pkt) { pkt->data = NULL; pkt->size = 0; } |