<div dir="ltr"><div class="gmail_default" style="font-size:large">I'm working on adding support for verifying the CRC in DTS files currently, I could possibly add together all the extracted values from the header, but that would be extremely prone to errors, the code would be very long and just a PITA all around.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">I found a function called avio_seek(), but that's for AVIOContext (obviously), is there a similar function for GetBitContext? and if not, can I cast the GetBitContext to AVIOContext?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 30, 2014 at 5:43 AM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Marcus Johnson <bumblebritches57@...> writes:<br>
<br>
> I need to seek X bytes into a file, and I'm not<br>
> sure which function will do that?<br>
<br>
</span>What kind of file?<br>
(For many file types, seeking X bytes makes not<br>
much sense.)<br>
<br>
You can try -skip_initial_bytes but you are probably<br>
searching for AVSEEK_FLAG_BYTE.<br>
<br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>