Fix #29824: Error writing frame if 3D scene starts after first frame of animation...
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 13 Jan 2012 09:20:13 +0000 (09:20 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 13 Jan 2012 09:20:13 +0000 (09:20 +0000)
commit74aede4d71aff4795178885ad5b82d4bfddadcb1
tree6401932769ce1e62786003d0a7806b8b0e311586
parent14e75b6c8483725a331123298309a940efa2a31f
Fix #29824: Error writing frame if 3D scene starts after first frame of animation and output is H264

Issue was caused by incorrectly set PTS value frames came form Scene strip renderer.
This value used to be calculated from RenderData current and start frame which
lead to non-uniformuly counting which totally confuses encoder.

Switch append_avi and append_ffmpeg to use current frame from rendering scene
(which was already passing to this functions and was used mostly for logging)
and start frame of rendering scene (it's new parameter added). This allowed to
calculate correct PTS value easily and get rid of global static sframe variable
in writeavi.c file.
source/blender/blenkernel/BKE_writeavi.h
source/blender/blenkernel/BKE_writeffmpeg.h
source/blender/blenkernel/BKE_writeframeserver.h
source/blender/blenkernel/intern/writeavi.c
source/blender/blenkernel/intern/writeffmpeg.c
source/blender/blenkernel/intern/writeframeserver.c
source/blender/editors/render/render_opengl.c
source/blender/editors/screen/screendump.c
source/blender/render/intern/source/pipeline.c