<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>Hi 
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=034434800-17102008>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
We have written a gstreamer plugin and it announces itself as a 
decoder.&nbsp;Since my decoder will reject anything without the sequence 
header.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>I am trying to the 
get the sequence header from a WMV AP file but not able to get it. I am using 
totem to test my plugin. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=034434800-17102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>In my sink_set_caps 
function:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=034434800-17102008>value=gst_structure_get_value(XX,"codec_data");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>buff = 
get_value_get_buffer(value);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>xyz = 
GST_BUFFER_DATA(buff);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>size = 
GST_BUFFER_SIZE(buff);</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=034434800-17102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=034434800-17102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>I am able to get the 
sequence header for Advanced profile but for simple main it gives me only 4 
bytes.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>-- 
Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=034434800-17102008>-- 
AJ</SPAN></FONT></DIV></BODY></HTML>