Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect] #276

Open
mantielero opened this issue May 2, 2024 · 0 comments
Open

Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect] #276

mantielero opened this issue May 2, 2024 · 0 comments

Comments

@mantielero
Copy link

When parsing avcodec.h and the following ffmpeg.c2nim:

#ifdef C2NIM
#def av_const
#def av_always_inline 
#def av_pure
#pp AV_HAVE_BIGENDIAN
#pp FF_API_OLD_CHANNEL_LAYOUT
#def attribute_deprecated
#def av_warn_unused_result
#def AV_PIX_FMT_NE

#endif
#def FF_API_R_FRAME_RATE TRUE
#ifdef C2NIM
#@
template AV_PIX_FMT_NE*(be, le: untyped):untyped  =
  `AV_PIX_FMT le`
@#
#endif

with the command line:

c2nim  --skipinclude --header --skipcomments --out:avcodec/avcodec.nim ffmpeg.c2nim ../FFmpeg-release-6.1/libavcodec/avcodec.h

I get the following error:

...
FFmpeg-release-6.1/libavcodec/avcodec.h(2119, 18) Warning: comment '< neither convert the subtitles, nor check them for valid UTF-8' ignored [CommentXIgnored]
fatal.nim(53)            sysFatal
Error: unhandled exception: index 1 not in 0 .. 0 [IndexDefect]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant