summaryrefslogtreecommitdiff
path: root/src/im_format_wmv.cpp
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-23 23:57:50 +0000
committerscuri <scuri>2009-08-23 23:57:50 +0000
commit67475cb6aa3af3a0c65351562c22f25814a45fcb (patch)
treeea2698cddce9503641e5546166dbbb51d8d677db /src/im_format_wmv.cpp
parent36e80e6481f7518e8005527d8965148039ba8dc2 (diff)
*** empty log message ***
Diffstat (limited to 'src/im_format_wmv.cpp')
-rw-r--r--src/im_format_wmv.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/im_format_wmv.cpp b/src/im_format_wmv.cpp
index a4733a5..4f3b31b 100644
--- a/src/im_format_wmv.cpp
+++ b/src/im_format_wmv.cpp
@@ -2,7 +2,7 @@
* \brief WMV - Windows Media Video Format
*
* See Copyright Notice in im_lib.h
- * $Id: im_format_wmv.cpp,v 1.2 2008/12/03 15:45:34 scuri Exp $
+ * $Id: im_format_wmv.cpp,v 1.3 2009/08/23 23:57:52 scuri Exp $
*/
#include "im_format.h"
@@ -1175,6 +1175,11 @@ int imFileFormatWMV::ReadImageInfo(int index)
imAttribTable* attrib_table = AttribTable();
+ /* must clear the attribute list, because it can have multiple images and
+ has many attributes that may exists only for specific images. */
+ attrib_table->RemoveAll();
+ imFileSetBaseAttributes(this);
+
if (MediaType->formattype == WMFORMAT_VideoInfo)
{
WMVIDEOINFOHEADER* info_header = (WMVIDEOINFOHEADER*)MediaType->pbFormat;