Mercurial > mplayer.hg
changeset 37185:917a3c4c2d39
lavf: fix AVSEEK_SIZE when STREAM_CTRL_GET_SIZE is not implemented.
Would set the size to an uninitialized value before.
author | reimar |
---|---|
date | Wed, 17 Sep 2014 17:49:54 +0000 |
parents | 36d586f37e26 |
children | 297da727ee2b |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Wed Sep 17 17:13:35 2014 +0000 +++ b/libmpdemux/demux_lavf.c Wed Sep 17 17:49:54 2014 +0000 @@ -105,7 +105,7 @@ else if(whence == SEEK_SET) pos += stream->start_pos; else if(whence == AVSEEK_SIZE && stream->end_pos > 0) { - uint64_t size; + uint64_t size = 0; stream_control(stream, STREAM_CTRL_GET_SIZE, &size); if (size > stream->end_pos) stream->end_pos = size;