Mercurial > libavformat.hg
comparison bethsoftvid.c @ 2232:77ed2f4105b7 libavformat
bethsoftvid: use correct type for size passed to av_fast_realloc()
author | mru |
---|---|
date | Sun, 08 Jul 2007 13:42:42 +0000 |
parents | 1a3c9056982a |
children | 7eb456c4ed8a |
comparison
equal
deleted
inserted
replaced
2231:7ad682f38b9a | 2232:77ed2f4105b7 |
---|---|
102 uint8_t * vidbuf_start = NULL; | 102 uint8_t * vidbuf_start = NULL; |
103 int vidbuf_nbytes = 0; | 103 int vidbuf_nbytes = 0; |
104 int code; | 104 int code; |
105 int bytes_copied = 0; | 105 int bytes_copied = 0; |
106 int position; | 106 int position; |
107 size_t vidbuf_capacity; | 107 unsigned int vidbuf_capacity; |
108 | 108 |
109 vidbuf_start = av_malloc(vidbuf_capacity = BUFFER_PADDING_SIZE); | 109 vidbuf_start = av_malloc(vidbuf_capacity = BUFFER_PADDING_SIZE); |
110 if(!vidbuf_start) | 110 if(!vidbuf_start) |
111 return AVERROR_NOMEM; | 111 return AVERROR_NOMEM; |
112 | 112 |