3d0c / gmf

Go Media Framework
MIT License
890 stars 169 forks source link

readCallback and size of bytes to read #24

Open umitanuki opened 9 years ago

umitanuki commented 9 years ago

In readCallback, handlers.readPacket is called without being given the input buffer size from libav. Doesn't it mean readPacket function can overflow the expected size of buffer? I would add two arguments buf and buf_size to readPacket callback. Or am I missing something?

wader commented 8 years ago

I think so, at least buf_size should be passed so that readPacket known maximum buffer size to return