Line
Link Here
|
0 |
-- ffmpegthumbnailer-2.2.0-orig/libffmpegthumbnailer/moviedecoder.cpp |
0 |
++ ffmpegthumbnailer-2.2.0/libffmpegthumbnailer/moviedecoder.cpp |
Lines 301-307
void MovieDecoder::initializeFilterGraph
Link Here
|
301 |
auto rotation = getStreamRotation(); |
301 |
auto rotation = getStreamRotation(); |
302 |
if (rotation != -1) |
302 |
if (rotation != -1) |
303 |
{ |
303 |
{ |
304 |
checkRc(avfilter_graph_create_filter(&rotateFilter, avfilter_get_by_name("transpose"), "thumb_rotate", std::to_string(rotation).c_str(), nullptr, m_pFilterGraph), |
304 |
stringstream stream; |
|
|
305 |
stream << rotation; |
306 |
checkRc(avfilter_graph_create_filter(&rotateFilter, avfilter_get_by_name("transpose"), "thumb_rotate", stream.str().c_str(), nullptr, m_pFilterGraph), |
305 |
"Failed to create rotate filter"); |
307 |
"Failed to create rotate filter"); |
306 |
} |
308 |
} |
307 |
|
309 |
|