<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Courier New";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-GB style='color:#1F497D'>Hi Maziar Mehrabi,<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-GB style='color:#1F497D'>thank you for your interrest. Indeed the problem was within my own code (as usual).<br>But your advice made me to debug again the application.<br>I figured out that in method VideoCoder::decodeV410() the range over the horizontal loop was not<br>initialized at every new pixel line.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-GB style='color:#1F497D'>Is there any interrest to see working code in examples?<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-GB style='color:#1F497D'>Regards & thanks<br>Bernhard Dirr<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-GB>Sorry I'm not much of help, but if I want to answer your questions correctly then I have to investigate your code and do some debugging.<o:p></o:p></span></p></div><p class=MsoNormal>However, I can suggest you what to do. First of all, change your code and study its behaviour. If you are suspicious that type casts are incorrect, then change them to something else (or don't cast at all) and see what happens. And if you are suspicious about allocations, one other alternative is to use av_malloc. First you should get the size with avpicture_get_size though.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>One more suggestion is to play with the Y, U, V, Grey limits that you have defined and see how it changes the output.<o:p></o:p></p></div><p class=MsoNormal>Good luck,<o:p></o:p></p></div><p class=MsoNormal>Maziar Mehrabi<o:p></o:p></p></div></div></body></html>