[libbluray-devel] Confusing return value from bd_read

陈勇 chenyong at star-net.cn
Mon Mar 5 10:31:04 CET 2018


Hi,

     I found return value from bd_read confusing.

     It's commented as: "@return size of data read, -1 if error, 0 if EOF"

     But if broken unit found,  it returns zero too. This will cause 
ffmpeg exit unexpectlly on broken unit. (vlc works fine because vlc 
ignore zero value returns from bd_read and continue read, which cause 
vlc freezed on last picture when play bluray).

     Is any chance you can add different return value if a broken unit 
found. Or maybe you could add a new event called BD_EVENT_BROKEN_UNIT ?




More information about the libbluray-devel mailing list