<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello everyone,</p>
<p><br>
</p>
<p>i used <span>swr_convert_frame(internal_->swr_ctx, out_frame, frame) to convert frames from planar format to packed, by using</span></p>
<p><span><span>out_frame->format = av_get_packed_sample_fmt(static_cast<AVSampleFormat>(frame->format));</span>  beforehand. When there is nothing to do,</span></p>
<p><span>meaning the file is single channel and i do not adjust the sampling rate, the swr_convert call crashes. If i change the sampling rate in the same call, it does not crash.</span></p>
<p><span><br>
</span></p>
<p><span>As workaround i just set the format manually to the packed counterpart without using 
<span>swr_convert_frame (for single channel cases)</span>, but is this behavior intended?</span></p>
<p><span><br>
</span></p>
<p><span>best,</span></p>
<p><span>Nick<br>
</span></p>
</div>
</body>
</html>