Revert "Change the read method of ffmpeg from filename to buffer". This bug was only affecting the load of photos and that usage was removed.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#ifndef AVDECODER_H
|
||||
#define AVDECODER_H
|
||||
|
||||
#include <QFile>
|
||||
#include <QImage>
|
||||
#include <QString>
|
||||
|
||||
@@ -59,14 +58,9 @@ public:
|
||||
static AvInit init;
|
||||
|
||||
private:
|
||||
void AVFrameToQImage(AVFrame &frame, QImage &image, int width, int height);
|
||||
AVFrame *getDecodedFrame(AVCodecContext *pCodecCtx, int stream_index);
|
||||
|
||||
static int readFunction(void* opaque, uint8_t* buf, int buf_size);
|
||||
static int64_t seekFunction(void* opaque, int64_t offset, int whence);
|
||||
|
||||
AVFormatContext *pFormatCtx;
|
||||
QFile *file;
|
||||
};
|
||||
|
||||
#endif // AVDECODER_H
|
||||
|
||||
Reference in New Issue
Block a user