summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-12-15 11:48:50 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-12-15 11:48:50 +0000
commiteb58e4e4a757e610ee4ce7de1f49c51cf1d349bf (patch)
treeb0d090f75cceae219845e47b64b003fcf4f74cc9
parent1afe443ceb09a575408ac1993ccf38bee599dcc8 (diff)
ext/ffmpeg/gstffmpegcfg.c: NULL-terminate the GEnumValue arrays, otherwise they will cause crashes. Fixes #503733.
Original commit message from CVS: Based on a patch by: Hans de Goede <j dot w dot r degoede at hhs dot nl> * ext/ffmpeg/gstffmpegcfg.c: (gst_ffmpeg_pre_me_get_type), (gst_ffmpeg_pred_method_get_type): NULL-terminate the GEnumValue arrays, otherwise they will cause crashes. Fixes #503733.
-rw-r--r--ChangeLog10
m---------common0
-rw-r--r--ext/ffmpeg/gstffmpegcfg.c16
3 files changed, 19 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c4e18b..afac000 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-12-15 Sebastian Dröge <slomo@circular-chaos.org>
+
+ Based on a patch by:
+ Hans de Goede <j dot w dot r degoede at hhs dot nl>
+
+ * ext/ffmpeg/gstffmpegcfg.c: (gst_ffmpeg_pre_me_get_type),
+ (gst_ffmpeg_pred_method_get_type):
+ NULL-terminate the GEnumValue arrays, otherwise they will cause
+ crashes. Fixes #503733.
+
2007-12-09 Sebastian Dröge <slomo@circular-chaos.org>
* configure.ac:
diff --git a/common b/common
-Subproject 423e2ea96b5f79281f4dd20d734bd968b3d95e8
+Subproject ea5f2cfab1a164a5d285fe745343cbe0a476a90
diff --git a/ext/ffmpeg/gstffmpegcfg.c b/ext/ffmpeg/gstffmpegcfg.c
index 3cb441e..37cf849 100644
--- a/ext/ffmpeg/gstffmpegcfg.c
+++ b/ext/ffmpeg/gstffmpegcfg.c
@@ -87,7 +87,7 @@ gst_ffmpeg_mb_decision_get_type (void)
static const GEnumValue ffmpeg_mb_decisions[] = {
{FF_MB_DECISION_SIMPLE, "Use method set by mb-cmp", "simple"},
{FF_MB_DECISION_BITS,
- "Chooses the one which needs the fewest bits aka vhq mode", "bits"},
+ "Chooses the one which needs the fewest bits aka vhq mode", "bits"},
{FF_MB_DECISION_RD, "Rate Distortion", "rd"},
{0, NULL, NULL},
};
@@ -223,6 +223,7 @@ gst_ffmpeg_pre_me_get_type (void)
{0, "Disabled", "off"},
{1, "Only after I-frames", "key"},
{2, "Always", "all"},
+ {0, NULL, NULL}
};
ffmpeg_pre_me_type =
@@ -243,6 +244,7 @@ gst_ffmpeg_pred_method_get_type (void)
{FF_PRED_LEFT, "Left", "left"},
{FF_PRED_PLANE, "Plane", "plane"},
{FF_PRED_MEDIAN, "Median", "median"},
+ {0, NULL, NULL}
};
ffmpeg_pred_method =
@@ -265,22 +267,22 @@ gst_ffmpeg_flags_get_type (void)
{CODEC_FLAG_GMC, "GMC", "gmc"},
{CODEC_FLAG_MV0, "Always try a MB with MV (0,0)", "mv0"},
{CODEC_FLAG_PART,
- "Store MV, DC and AC coefficients in seperate partitions", "part"},
+ "Store MV, DC and AC coefficients in seperate partitions", "part"},
{CODEC_FLAG_GRAY, "Only decode/encode grayscale", "gray"},
{CODEC_FLAG_NORMALIZE_AQP,
- "Normalize Adaptive Quantization (masking, etc)", "aqp"},
+ "Normalize Adaptive Quantization (masking, etc)", "aqp"},
{CODEC_FLAG_TRELLIS_QUANT, "Trellis Quantization", "trellis"},
{CODEC_FLAG_GLOBAL_HEADER,
"Global headers in extradata instead of every keyframe",
- "global-headers"},
+ "global-headers"},
{CODEC_FLAG_AC_PRED, "H263 Advanced Intra Coding / MPEG4 AC prediction",
- "aic"},
+ "aic"},
{CODEC_FLAG_H263P_UMV, "Unlimited Motion Vector", "umv"},
{CODEC_FLAG_CBP_RD, "Rate Distoration Optimization for CBP", "cbp-rd"},
{CODEC_FLAG_QP_RD, "Rate Distoration Optimization for QP selection",
- "qp-rd"},
+ "qp-rd"},
{CODEC_FLAG_SVCD_SCAN_OFFSET,
- "Reserve space for SVCD scan offset user data", "scanoffset"},
+ "Reserve space for SVCD scan offset user data", "scanoffset"},
{CODEC_FLAG_CLOSED_GOP, "Closed GOP", "closedgop"},
{0, NULL, NULL},
};