MCPcopy Create free account
hub / github.com/FFMS/ffms2 / SanityCheckFrameForData

Method SanityCheckFrameForData

src/core/videosource.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54void FFMS_VideoSource::SanityCheckFrameForData(AVFrame *Frame) {
55 for (int i = 0; i < 4; i++) {
56 if (Frame->data[i] != nullptr && Frame->linesize[i] != 0)
57 return;
58 }
59
60 throw FFMS_Exception(FFMS_ERROR_DECODING, FFMS_ERROR_CODEC, "Insanity detected: decoder returned an empty frame");
61}
62
63void FFMS_VideoSource::GetFrameCheck(int n) {
64 if (n < 0 || n >= VP.NumFrames)

Callers

nothing calls this directly

Calls 1

FFMS_ExceptionClass · 0.85

Tested by

no test coverage detected