fix flv-parser write bug (#387)
This commit is contained in:
1 parent
aaaa65856c
commit
cd2bbb861b
1 file changed
+1
-1
@@ -157,7 +157,7 @@ func (p *Parser) doWrite(ctx context.Context, b []byte) error {
|
||||
leftInputSize := len(b)
|
||||
var logger *interfaces.Logger = nil
|
||||
for retryLeft := ioRetryCount; retryLeft > 0 && leftInputSize > 0; retryLeft-- {
|
||||
writtenCount, err := p.o.Write(b)
|
||||
writtenCount, err := p.o.Write(b[len(b)-leftInputSize:])
|
||||
leftInputSize -= writtenCount
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user