summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2014-07-22 09:59:01 +0000
committerKoop Mast <kwm@FreeBSD.org>2014-07-22 09:59:01 +0000
commit0e90ccad241dd8fcede6ed7a34829bb12e55925c (patch)
tree9cbfffdb23c450ee811b23ed120920e674f8f39d /multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh
parentDon't attempt to define NULL if it is already set. (diff)
Fix two problems.
Use class instead of struct for RateCtl in encoderparams.hh. Class RateCtl is defined in ratectl.hh and used elsewhere in the code too. Fix headerguard typo in ontheflyratectlpass[12].hh. Found by: Clang
Diffstat (limited to 'multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh')
-rw-r--r--multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh b/multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh
new file mode 100644
index 000000000000..87d751233614
--- /dev/null
+++ b/multimedia/mjpegtools/files/patch-mpeg2enc_encoderparams.hh
@@ -0,0 +1,14 @@
+Use class RateCtl instead of struct.
+Class RateCtl is defined in ratectl.hh and used elsewhere in the code too.
+
+--- ./mpeg2enc/encoderparams.hh.orig 2014-07-21 16:50:46.000000000 +0200
++++ ./mpeg2enc/encoderparams.hh 2014-07-21 16:50:56.000000000 +0200
+@@ -79,7 +79,7 @@
+ };
+
+
+-struct RateCtl;
++class RateCtl;
+ class MPEG2EncOptions;
+
+ class EncoderParams