Default illegal parameters in TargetParam.
[synfig.git] / synfig-core / src / synfig / targetparam.h
index c54f15a..05c815d 100644 (file)
@@ -33,6 +33,17 @@ namespace synfig {
 
 struct TargetParam
 {
+       //! Default constructor
+       /*! Not valid default values, if they are not modified before
+        *  passing them to the target module, it would override them with
+        *  its own valid default settings.
+        */
+       TargetParam (): video_codec("none"), bitrate(-1) { }
+
+       TargetParam (const std::string& Video_codec, int Bitrate):
+               video_codec(Video_codec), bitrate(Bitrate)
+       { }
+
        std::string video_codec;
        int bitrate;
 };