Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-10 11:36:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-10 11:36:44 +0400
commit3a9b288bc7982fc69c8ebf1005122cba45e725dd (patch)
treed56498a8a9568776239f9a726470c8afd190da77
parenta10e00dc5741794f125abfcfa3f7b445335b34dc (diff)
fix for [#28201] blender crashes when "mpeg" selected
2 changes - When writing OGG only allow Theora encoding, this fixes the crash. - When setting the MPEG preset, dont allow the 'Codec' to be left as Theora, this is just confusing. * note that this is highly confusing for users and devs - there are 4 places to set the codec/format, with both python and C presets :S.
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 4db53999f10..fe7a7a18177 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -658,10 +658,12 @@ static int start_ffmpeg_impl(struct RenderData *rd, int rectx, int recty, Report
switch(ffmpeg_type) {
case FFMPEG_AVI:
case FFMPEG_MOV:
- case FFMPEG_OGG:
case FFMPEG_MKV:
fmt->video_codec = ffmpeg_codec;
break;
+ case FFMPEG_OGG:
+ fmt->video_codec = CODEC_ID_THEORA;
+ break;
case FFMPEG_DV:
fmt->video_codec = CODEC_ID_DVVIDEO;
break;
@@ -1310,6 +1312,9 @@ void ffmpeg_verify_image_type(RenderData *rd)
/* Don't set preset, disturbs render resolution.
* ffmpeg_set_preset(rd, FFMPEG_PRESET_DVD); */
}
+ if(rd->ffcodecdata.type == FFMPEG_OGG) {
+ rd->ffcodecdata.type = FFMPEG_MPEG2;
+ }
audio= 1;
}