| 52 | |
| 53 | |
| 54 | void 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 | |
| 63 | void FFMS_VideoSource::GetFrameCheck(int n) { |
| 64 | if (n < 0 || n >= VP.NumFrames) |
nothing calls this directly
no test coverage detected