# HG changeset patch # User reimar # Date 1269286783 0 # Node ID 6ca66cec8a15618f73c768b6733f049ce5ab335d # Parent c449f1667e78af7c40db35be6c3736a06c3e0a53 Reindent diff -r c449f1667e78 -r 6ca66cec8a15 libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Mon Mar 22 19:38:42 2010 +0000 +++ b/libmpdemux/demux_lavf.c Mon Mar 22 19:39:43 2010 +0000 @@ -159,19 +159,19 @@ avpd.buf = av_mallocz(FFMAX(BIO_BUFFER_SIZE, PROBE_BUF_SIZE) + FF_INPUT_BUFFER_PADDING_SIZE); do { - read_size = stream_read(demuxer->stream, avpd.buf + probe_data_size, read_size); - if(read_size < 0) { - av_free(avpd.buf); - return 0; - } - probe_data_size += read_size; - avpd.filename= demuxer->stream->url; - if (!strncmp(avpd.filename, "ffmpeg://", 9)) - avpd.filename += 9; - avpd.buf_size= probe_data_size; + read_size = stream_read(demuxer->stream, avpd.buf + probe_data_size, read_size); + if(read_size < 0) { + av_free(avpd.buf); + return 0; + } + probe_data_size += read_size; + avpd.filename= demuxer->stream->url; + if (!strncmp(avpd.filename, "ffmpeg://", 9)) + avpd.filename += 9; + avpd.buf_size= probe_data_size; - priv->avif= av_probe_input_format(&avpd, probe_data_size > 0); - read_size = FFMIN(2*read_size, PROBE_BUF_SIZE - probe_data_size); + priv->avif= av_probe_input_format(&avpd, probe_data_size > 0); + read_size = FFMIN(2*read_size, PROBE_BUF_SIZE - probe_data_size); } while ((demuxer->desc->type != DEMUXER_TYPE_LAVF_PREFERRED || probe_data_size < SMALL_MAX_PROBE_SIZE) && !priv->avif && read_size > 0 && probe_data_size < PROBE_BUF_SIZE);