summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_examiner.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-06-08 17:07:24 +0100
committerCarl Hetherington <cth@carlh.net>2018-06-08 17:07:24 +0100
commit383c3b6c81e916c59b08a765540784d3f2350276 (patch)
tree8726ada4d0bf1aa5cb8d97901a53b1fcd1966ea7 /src/lib/ffmpeg_examiner.h
parent677344e05e5c8483d39430ab5058f1ff8114fd9e (diff)
Auto-rotate videos.
Diffstat (limited to 'src/lib/ffmpeg_examiner.h')
-rw-r--r--src/lib/ffmpeg_examiner.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h
index 5cd70d979..67fdcfae0 100644
--- a/src/lib/ffmpeg_examiner.h
+++ b/src/lib/ffmpeg_examiner.h
@@ -71,6 +71,10 @@ public:
boost::optional<int> bits_per_pixel () const;
+ boost::optional<double> rotation () const {
+ return _rotation;
+ }
+
private:
void video_packet (AVCodecContext *);
void audio_packet (AVCodecContext *, boost::shared_ptr<FFmpegAudioStream>);
@@ -88,6 +92,8 @@ private:
Frame _video_length;
bool _need_video_length;
+ boost::optional<double> _rotation;
+
struct SubtitleStart
{
SubtitleStart (std::string id_, bool image_, ContentTime time_)