Skip to content

Commit

Permalink
removed travis , small change to doc and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
squeeze69 committed Jun 18, 2021
1 parent 8a795c2 commit dca212b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

## program written in [GO](https://golang.org)

[![Build Status](https://travis-ci.com/squeeze69/vcodec.svg?branch=master)](https://travis-ci.com/squeeze69/vcodec)

Scan a RIFF file for the "vids" section, then exit with an error level 1 if the video codec is listed on the command line. The "heavy lift" is made by the image/riff library.

It's partially based on one of the examples in the image/riff section (the read chunk,etc...).

i.e.:

vcodec file.avi DIV3 DX50 ...
Expand Down
2 changes: 2 additions & 0 deletions vcodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func main2() {
log.Fatal(err)
}
defer f.Close()
// check for a matching codec, case insensitive
defer func() {
if r := recover(); r != nil {
fmt.Printf("Codec: %s\n", r)
Expand All @@ -56,6 +57,7 @@ func main2() {
}
}

//scan riff for chunk data
func scanriff(r *riff.Reader) error {
for {
chunkID, chunkLen, chunkData, err := r.Next()
Expand Down

0 comments on commit dca212b

Please sign in to comment.