Make MP4 input more consistent and verbose in erroring out during initial read
This commit is contained in:
parent
63afd0b72a
commit
0db153b7b9
1 changed files with 7 additions and 5 deletions
|
@ -268,6 +268,13 @@ namespace Mist{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!hasMoov){
|
||||||
|
FAIL_MSG("No MOOV box found in source file; aborting!");
|
||||||
|
if (!inFile){FAIL_MSG("URIReader for source file was disconnected!");}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// See whether a separate header file exists.
|
// See whether a separate header file exists.
|
||||||
if (readExistingHeader()){
|
if (readExistingHeader()){
|
||||||
bps = 0;
|
bps = 0;
|
||||||
|
@ -278,11 +285,6 @@ namespace Mist{
|
||||||
INFO_MSG("Not read existing header");
|
INFO_MSG("Not read existing header");
|
||||||
|
|
||||||
meta.reInit(isSingular() ? streamName : "");
|
meta.reInit(isSingular() ? streamName : "");
|
||||||
if (!hasMoov){
|
|
||||||
FAIL_MSG("No MOOV box found; aborting header creation!");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
tNumber = 0;
|
tNumber = 0;
|
||||||
// Create header file from MP4 data
|
// Create header file from MP4 data
|
||||||
MP4::Box moovBox(readBuffer, false);
|
MP4::Box moovBox(readBuffer, false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue