Commit b7594a14 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

avformat: add support to IOSeek() for AVSEEK_SIZE (retrieving size without seeking)

parent 7e32f4f2
...@@ -496,6 +496,10 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence ) ...@@ -496,6 +496,10 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
switch( whence ) switch( whence )
{ {
#ifdef AVSEEK_SIZE
case AVSEEK_SIZE:
return i_size;
#endif
case SEEK_SET: case SEEK_SET:
break; break;
case SEEK_CUR: case SEEK_CUR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment