diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-02-10 13:24:20 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-02-10 13:24:20 +0000 |
| commit | a1318769138379192cd0d381877808e928cffe44 (patch) | |
| tree | bbab3f7f40b3fe9e9192eb76f33d30c70c618331 /rotord/src/libavwrapper.h | |
| parent | 8fe0c8d0fd02d42ecd68e562c734d4f41cb41700 (diff) | |
elusive bank bug./http GET a/render
Diffstat (limited to 'rotord/src/libavwrapper.h')
| -rw-r--r-- | rotord/src/libavwrapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rotord/src/libavwrapper.h b/rotord/src/libavwrapper.h index 162a77e..fc628c0 100644 --- a/rotord/src/libavwrapper.h +++ b/rotord/src/libavwrapper.h @@ -77,7 +77,7 @@ namespace libav { std::cerr<<"ffmpegsource: "<<err.Buffer<<std::endl; return false; } - frame = FFMS_GetFrame(source, wanted%props->NumFrames, &err); + frame = FFMS_GetFrame(source, std::max(0,wanted%props->NumFrames), &err); if (frame == NULL) { std::cerr<<"ffmpegsource: "<<err.Buffer<<std::endl; return false; |
