oneam / h264bsd

A simple h264 software decoding library
Other
194 stars 52 forks source link

Error when decoding #24

Closed Heath123 closed 1 year ago

Heath123 commented 1 year ago

When I try to decode this: video.h264.zip it is triggering this error:
https://github.com/oneam/h264bsd/blob/master/src/h264bsd_byte_stream.c#L218 Why? I don't know much about h264 so I don't know what's going on

Heath123 commented 1 year ago

The file was made with ffmpeg -i video.webm -tune fastdecode -ss 00:00:0.0 -t 15 -r 20 -s 396x224 -c:v libx264 -crf 30 -preset veryslow -profile:v baseline -an video.mp4 ffmpeg -i video.mp4 -vcodec copy -an -bsf:v h264_mp4toannexb video.h264

Heath123 commented 1 year ago

It works when using the Posix test app so this is probably my fault for not using the library properly, I'll try to compare what that's doing with what I'm doing

Heath123 commented 1 year ago

The issue was that Copilot moved some code to the wrong place, it was my fault