openexr: Fix some warnings
``` ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:46:24: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 46 | virtual Int64 tellg (); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:47:32: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 47 | virtual void seekg (Int64 pos); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:67:26: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 67 | Int64 MemIStream::tellg () | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:73:29: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 73 | MemIStream::seekg (Int64 pos) | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1977>
This commit is contained in:
parent
5182daaf88
commit
8819350b74
@ -26,10 +26,10 @@
|
|||||||
|
|
||||||
#include <gst/base/base.h>
|
#include <gst/base/base.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <ImfRgbaFile.h>
|
#include <ImfRgbaFile.h>
|
||||||
#include <ImfIO.h>
|
#include <ImfIO.h>
|
||||||
#include <ImfInt64.h>
|
|
||||||
using namespace Imf;
|
using namespace Imf;
|
||||||
using namespace Imath;
|
using namespace Imath;
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual bool read (char c[], int n);
|
virtual bool read (char c[], int n);
|
||||||
virtual Int64 tellg ();
|
virtual uint64_t tellg ();
|
||||||
virtual void seekg (Int64 pos);
|
virtual void seekg (uint64_t pos);
|
||||||
virtual void clear ();
|
virtual void clear ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -64,13 +64,13 @@ bool MemIStream::read (char c[], int n)
|
|||||||
return (offset == size);
|
return (offset == size);
|
||||||
}
|
}
|
||||||
|
|
||||||
Int64 MemIStream::tellg ()
|
uint64_t MemIStream::tellg ()
|
||||||
{
|
{
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
MemIStream::seekg (Int64 pos)
|
MemIStream::seekg (uint64_t pos)
|
||||||
{
|
{
|
||||||
offset = pos;
|
offset = pos;
|
||||||
if (offset > size)
|
if (offset > size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user