renatobianchini / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

AVIWriter not saving codec properties #255

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new AVI File, specify a different codec and configure it
2. Go back in to look at codec properties - they are reset to defaults

What is the expected output? What do you see instead?
codec should retain settings

What version of the product are you using?
latest

Please provide any additional information below.

If I comment out the lines in Win32.cs (AVISaveOptions(IntPtr stream, ref 
AVICOMPRESSOPTIONS options)):

// free AVI compression options
//AVISaveOptionsFree(1, infPtrs);

// clear it, because the information already freed by AVISaveOptionsFree
//options.format = 0;
//options.parameters = 0;

Then it works as it should. Would be great to be able to save the configuration 
of the codec so when my app restarts the codecs are configured as they should 
be. 

Original issue reported on code.google.com by ad...@developerinabox.com on 15 Sep 2011 at 4:08

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 15 Sep 2011 at 4:45