xuggler convertingh mp4 to avi
<p>Im using xuggler to convert mp4 file to avi file.the conversion is going on well but my program is not coming out of while loop please anybody help me 
this is my code</p>

<pre><code>IMediaReader mediaReader = ToolFactory.makeReader(inputFilename);
IMediaWriter mediaWriter = ToolFactory.makeWriter(outputFilename, mediaReader);
mediaReader.addListener(mediaWriter);
IMediaViewer mediaViewer = ToolFactory.makeViewer(true);
mediaReader.addListener(mediaViewer);
while (mediaReader.readPacket() == null);
</code></pre>

<p>thanks in advace</p>
