-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return a non-zero return code if no subtitles were found #553
Conversation
Could work. @canihavesomecoffee what does the CI say? |
Yes, you had approved it tentatively. It is awaiting parental consent approval for completion. |
The PR is almost fine. Test 28-30 is incorrectly returning status code 10, while the output is non-empty. They're all 3 .mov files. |
Okay, I checked 28 and my workaround for mp4 is incorrect. I had assumed that |
No, that doesn't help. You can have a CC track but no subtitles inside of
it but any reason, for example. Only way is delay opening the output file
until the first write.
…On Wed, Dec 28, 2016 at 6:39 PM, Anukul Sangwan ***@***.***> wrote:
Okay, my workaround for mp4 is incorrect. I had assumed that
ctx->freport.mp4_cc_track_cnt would store a non zero value in the case
when captions are present. But I guess it's not so.
Should I modify the gpacmp4 libary?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#553 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrJ2QALwjLfRB_WE53GnpobaPJzu57oks5rMp7EgaJpZM4LQDYS>
.
|
The last commit fixes Tests 28, 29, 30. |
break; | ||
case CCX_SM_MP4: | ||
mprint ("\rAnalyzing data with GPAC (MP4 library)\n"); | ||
close_input_file(ctx); // No need to have it open. GPAC will do it for us | ||
processmp4(ctx, &ctx->mp4_cfg, ctx->inputfile[ctx->current_file]); | ||
if (ccx_options.print_file_reports) | ||
print_file_report(ctx); | ||
tmp = ctx->freport.mp4_cc_track_cnt; | ||
if (!ret) ret = tmp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why tmp variable needed, why cant you just capture the return value in ret variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because of this.
Previous PR: #535