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:
codestation
2014-01-18 21:26:05 -04:30
parent bafae021ed
commit ca2e0a4b0c
2 changed files with 3 additions and 55 deletions

View File

@@ -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