asticode / goav

Golang bindings for FFmpeg libraries
https://github.com/asticode/goav
MIT License
41 stars 16 forks source link

Error compile with FFMPEG 4.4 #5

Open mderit opened 3 years ago

mderit commented 3 years ago

this issue have with ffmpeg 4.4 os : windows 10

$ gcc --version
gcc.exe (tdm64-1) 9.2.0

$ g++ --version
g++.exe (tdm64-1) 9.2.0
# github.com/asticode/goav/avformat
vendor\github.com\asticode\goav\avformat\stream_struct.go:42:24: avs.probe_data undefined (type *Stream has no field or method probe_data)
vendor\github.com\asticode\goav\avformat\stream_struct.go:102:16: avs.inject_global_side_data undefined (type *Stream has no field or method inject_global_side_data)
vendor\github.com\asticode\goav\avformat\stream_struct.go:110:16: avs.nb_decoded_frames undefined (type *Stream has no field or method nb_decoded_frames)
vendor\github.com\asticode\goav\avformat\stream_struct.go:126:16: avs.pts_wrap_behavior undefined (type *Stream has no field or method pts_wrap_behavior)
vendor\github.com\asticode\goav\avformat\stream_struct.go:130:16: avs.request_probe undefined (type *Stream has no field or method request_probe)
vendor\github.com\asticode\goav\avformat\stream_struct.go:134:16: avs.skip_samples undefined (type *Stream has no field or method skip_samples)
vendor\github.com\asticode\goav\avformat\stream_struct.go:138:16: avs.skip_to_keyframe undefined (type *Stream has no field or method skip_to_keyframe)
vendor\github.com\asticode\goav\avformat\stream_struct.go:146:16: avs.update_initial_durations_done undefined (type *Stream has no field or method update_initial_durations_done)
vendor\github.com\asticode\goav\avformat\stream_struct.go:166:18: avs.interleaver_chunk_duration undefined (type *Stream has no field or method interleaver_chunk_duration)
vendor\github.com\asticode\goav\avformat\stream_struct.go:170:18: avs.interleaver_chunk_size undefined (type *Stream has no field or method interleaver_chunk_size)
vendor\github.com\asticode\goav\avformat\stream_struct.go:170:18: too many errors
asticode commented 3 years ago

As mentioned in the readme, this lib is compatible with ffmpeg up to 4.1.1.

There were some breaking changes since then.