Files
reisen/unknown.go

34 lines
804 B
Go
Executable File

package reisen
// #cgo pkg-config: libavutil libavformat libavcodec libswscale
// #include <libavcodec/avcodec.h>
// #include <libavformat/avformat.h>
// #include <libavutil/avutil.h>
// #include <libavutil/imgutils.h>
// #include <libswscale/swscale.h>
// #include <inttypes.h>
import "C"
import (
"fmt"
)
// UnknownStream is a stream containing frames consisting of unknown data.
type UnknownStream struct {
baseStream
}
// Open is just a stub.
func (unknown *UnknownStream) Open() error {
return nil
}
// ReadFrame is just a stub.
func (unknown *UnknownStream) ReadFrame() (Frame, bool, error) {
return nil, false, fmt.Errorf("UnknownStream.ReadFrame() not implemented")
}
// Close is just a stub.
func (unknown *UnknownStream) Close() error {
return nil
}