summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-03-08 10:36:44 +0000
committerCarl Hetherington <cth@carlh.net>2016-03-08 10:36:44 +0000
commit0f3c2864599f9e5a5ec001266b4aefb0205d1e1f (patch)
tree2158a8f135e4a196b784df285db008e5ec2439e5
parentbdae32bb84672026c1a373e809804109e95accf4 (diff)
parenta2668dcfc484e5e2b158bd3b51b835a96660c8d8 (diff)
Fix merge.
-rw-r--r--ChangeLog2
-rw-r--r--cscript2
-rw-r--r--src/lib/ffmpeg.cc4
-rw-r--r--src/lib/ffmpeg_examiner.cc6
-rw-r--r--src/lib/image.cc8
5 files changed, 11 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 897e1f0f7..a98e4ffc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* Store time zone with cinemas and use them to
mark KDM start and end times correctly (#788).
+ * Bump ffmpeg to git master, somewhere post 3.0.
+
2016-03-08 Carl Hetherington <cth@carlh.net>
* Version 2.7.0 released.
diff --git a/cscript b/cscript
index 2bb2b6c28..511beb766 100644
--- a/cscript
+++ b/cscript
@@ -261,7 +261,7 @@ def dependencies(target):
else:
ffmpeg_options = {}
- return (('ffmpeg-cdist', '96d67de', ffmpeg_options),
+ return (('ffmpeg-cdist', 'f2952f3', ffmpeg_options),
('libdcp', 'v1.3.1'),
('libsub', 'v1.1.11'))
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc
index 9d6921dcf..296002c74 100644
--- a/src/lib/ffmpeg.cc
+++ b/src/lib/ffmpeg.cc
@@ -280,9 +280,9 @@ FFmpeg::subtitle_id (AVSubtitle const & sub)
digester.add (rect->y);
digester.add (rect->w);
digester.add (rect->h);
- int const line = rect->pict.linesize[0];
+ int const line = rect->linesize[0];
for (int j = 0; j < rect->h; ++j) {
- digester.add (rect->pict.data[0] + j * line, line);
+ digester.add (rect->data[0] + j * line, line);
}
}
return digester.get ();
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index abca5fee7..648660478 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -134,7 +134,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
}
}
- av_free_packet (&_packet);
+ av_packet_unref (&_packet);
if (_first_video && got_all_audio && _subtitle_streams.empty ()) {
/* All done */
@@ -249,7 +249,7 @@ FFmpegExaminer::subtitle_packet (AVCodecContext* context, shared_ptr<FFmpegSubti
for (unsigned int i = 0; i < sub.num_rects; ++i) {
if (sub.rects[i]->type == SUBTITLE_BITMAP) {
- uint32_t* palette = (uint32_t *) sub.rects[i]->pict.data[1];
+ uint32_t* palette = (uint32_t *) sub.rects[i]->data[1];
for (int j = 0; j < sub.rects[i]->nb_colors; ++j) {
RGBA rgba (
(palette[j] & 0x00ff0000) >> 16,
@@ -417,8 +417,6 @@ FFmpegExaminer::yuv () const
case AV_PIX_FMT_YUV444P10LE:
case AV_PIX_FMT_YUV422P9BE:
case AV_PIX_FMT_YUV422P9LE:
- case AV_PIX_FMT_YUVA422P_LIBAV:
- case AV_PIX_FMT_YUVA444P_LIBAV:
case AV_PIX_FMT_YUVA420P9BE:
case AV_PIX_FMT_YUVA420P9LE:
case AV_PIX_FMT_YUVA422P9BE:
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 37aa2b5e3..7ccb9906e 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -581,15 +581,15 @@ Image::bytes_per_pixel (int c) const
float bpp[4] = { 0, 0, 0, 0 };
- bpp[0] = floor ((d->comp[0].depth_minus1 + 1 + 7) / 8);
+ bpp[0] = floor ((d->comp[0].depth + 7) / 8);
if (d->nb_components > 1) {
- bpp[1] = floor ((d->comp[1].depth_minus1 + 1 + 7) / 8) / pow (2.0f, d->log2_chroma_w);
+ bpp[1] = floor ((d->comp[1].depth + 7) / 8) / pow (2.0f, d->log2_chroma_w);
}
if (d->nb_components > 2) {
- bpp[2] = floor ((d->comp[2].depth_minus1 + 1 + 7) / 8) / pow (2.0f, d->log2_chroma_w);
+ bpp[2] = floor ((d->comp[2].depth + 7) / 8) / pow (2.0f, d->log2_chroma_w);
}
if (d->nb_components > 3) {
- bpp[3] = floor ((d->comp[3].depth_minus1 + 1 + 7) / 8) / pow (2.0f, d->log2_chroma_w);
+ bpp[3] = floor ((d->comp[3].depth + 7) / 8) / pow (2.0f, d->log2_chroma_w);
}
if ((d->flags & AV_PIX_FMT_FLAG_PLANAR) == 0) {