<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">El 6/11/21 a las 23:35, Robert Smith
via Libav-user escribió:<br>
</div>
<blockquote type="cite"
cite="mid:1535897495.1964012.1636252505312@mail.yahoo.com">
<div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
Helvetica, Arial, sans-serif;font-size:16px;">
<div dir="ltr" data-setdir="false"><span><span style="color:
rgb(35, 38, 41); font-family: -apple-system,
BlinkMacSystemFont, "Segoe UI", "Liberation
Sans", sans-serif; font-size: 15px;">
<div><br>
</div>
<div dir="ltr" data-setdir="false">If I skip setting
setting <span><span style="color: rgb(35, 38, 41);
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Liberation Sans",
sans-serif; font-size: 15px;">sample format option </span></span>the
<span>swr_init display warning</span><br>
<br>
<div>
<div>[SWR @ 0x2c7b950] Requested sample format (null)
is not supported internally, only float & S16 is
supported</div>
<div dir="ltr" data-setdir="false"><br>
and eventually <span><span style="color: rgb(35, 38,
41); font-family: -apple-system,
BlinkMacSystemFont, "Segoe UI",
"Liberation Sans", sans-serif;
font-size: 15px;">swr_convert fails on
assertion:</span></span><br>
Assertion a->planar failed at
libswresample/swresample.c:284<br>
<br>
Could you advise how to resolve this issue? Thanks</div>
<div><br>
</div>
</div>
</div>
</span></span></div>
</div>
</blockquote>
<p>See if there's a swr_alloc_set_opts function in your libav. If
there is, you can pass all the flags like:<br>
<br>
swr_ctx = swr_alloc_set_opts(NULL, out_ch_layout,<br>
out_sample_fmt,
out_sample_rate,<br>
in_ch_layout,
in_sample_fmt,<br>
in_sample_rate,<br>
0, NULL);</p>
<p>Hope that helps!<br>
</p>
</body>
</html>