Unverified Commit dd9080ca authored by Prabhat Roy's avatar Prabhat Roy Committed by GitHub
Browse files

Fix error message in demuxer (#5293)

parent e13da8b8
...@@ -119,6 +119,7 @@ class Demuxer { ...@@ -119,6 +119,7 @@ class Demuxer {
" in demuxer.h\n"); " in demuxer.h\n");
} }
} }
~Demuxer() { ~Demuxer() {
if (!fmtCtx) { if (!fmtCtx) {
return; return;
...@@ -223,7 +224,7 @@ class Demuxer { ...@@ -223,7 +224,7 @@ class Demuxer {
int64_t time = timestamp * AV_TIME_BASE; int64_t time = timestamp * AV_TIME_BASE;
TORCH_CHECK( TORCH_CHECK(
0 <= av_seek_frame(fmtCtx, -1, time, flag), 0 <= av_seek_frame(fmtCtx, -1, time, flag),
"avformat_open_input() failed at line ", "av_seek_frame() failed at line ",
__LINE__, __LINE__,
" in demuxer.h\n"); " in demuxer.h\n");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment