\r
#include "flv.h"\r
\r
+#include "../tbb_avcodec.h"\r
#include "../../ffmpeg_error.h"\r
\r
#include <tbb/concurrent_unordered_map.h>\r
{ \r
AVCodec* decoder;\r
index = THROW_ON_ERROR2(av_find_best_stream(&context, type, -1, -1, &decoder, 0), "");\r
- THROW_ON_ERROR2(avcodec_open(context.streams[index]->codec, decoder), "");\r
- return safe_ptr<AVCodecContext>(context.streams[index]->codec, avcodec_close);\r
+ if(strcmp(decoder->name, "prores") == 0 && strcmp(decoder->next->name,"prores_lgpl") == 0)\r
+ decoder = decoder->next;\r
+\r
+ THROW_ON_ERROR2(tbb_avcodec_open(context.streams[index]->codec, decoder), "");\r
+ return safe_ptr<AVCodecContext>(context.streams[index]->codec, tbb_avcodec_close);\r
}\r
\r
safe_ptr<AVFormatContext> open_input(const std::wstring& filename)\r