Skip to content

Commit

Permalink
fix write trailer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericxtang committed Jan 12, 2018
1 parent bd41a3b commit 5a7f5d7
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 5a7f5d7

Please sign in to comment.