Mercurial > libavformat.hg
changeset 4236:63c721da20e5 libavformat
Merge declaration and initialization of io_buffer_size
author | reimar |
---|---|
date | Fri, 16 Jan 2009 16:39:17 +0000 |
parents | ce71070e447d |
children | 9b075affa835 |
files | aviobuf.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/aviobuf.c Fri Jan 16 16:37:54 2009 +0000 +++ b/aviobuf.c Fri Jan 16 16:39:17 2009 +0000 @@ -784,12 +784,7 @@ { DynBuffer *d; int ret; - unsigned io_buffer_size; - - if (max_packet_size) - io_buffer_size = max_packet_size; - else - io_buffer_size = 1024; + unsigned io_buffer_size = max_packet_size ? max_packet_size : 1024; if(sizeof(DynBuffer) + io_buffer_size < io_buffer_size) return -1;