<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>What I did was setting aVCodecContext->width and height to
something > 0. (200x200).</p>
<p>The decoder resets these with the correct values while decoding.<br>
</p>
<div class="moz-signature">
<p>Saludos / Best regards, <br>
<br>
<b>Sergio Basurco</b> <br>
Coherent Synchro</p>
</div>
<div class="moz-cite-prefix">On 04/06/2018 10:03, Sergio Basurco
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9ffd02a5-6f88-9aa3-bf49-7e6599b68cd2@coherentsynchro.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<p>Hi, <br>
</p>
<p>I'm setting up my program to use the h264_cuvid decoder. I'm
using ffmpeg_opt.c, ffmpeg_cuvid and ffmpeg_hw.c as a
reference. When initializing the codec must have set the
CodecContext width and height. Apparently this information
should be available in the SPS/PPS.</p>
<p>From other ffmpeg posts, seems I will have to decode a frame in
order to get width and height... but I can't since I cannot open
the codec, due to missing width and height. I'm quite stuck on
this. <br>
</p>
<p>I cannot see how ffmpeg parses width and height and feeds it
into the AVCodecContext.<br>
</p>
<div class="moz-signature">-- <br>
<p>Saludos / Best regards, <br>
<br>
<b>Sergio Basurco</b> <br>
Coherent Synchro</p>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
<br>
</body>
</html>