Skip to content

Commit

Permalink
Merge pull request nareix#51 from ericxtang/master
Browse files Browse the repository at this point in the history
Fix write trailer bug
  • Loading branch information
ericxtang authored Oct 22, 2018
2 parents 96fe07e + 5a7f5d7 commit 3ddbc8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions av/avutil/avutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ func CopyFile(dst av.Muxer, src av.Demuxer) (err error) {
return
}
if err = CopyPackets(dst, src); err != nil {
return
if err != io.EOF {
return
}
}
if err = dst.WriteTrailer(); err != nil {
return
}
return
}

0 comments on commit 3ddbc8f

Please sign in to comment.