Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e8a5a9b1
Commit
e8a5a9b1
authored
Aug 09, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mp4v2' of github.com:ekroth/mpd
parents
a67a8817
ec3568bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Mp4v2DecoderPlugin.cxx
src/decoder/plugins/Mp4v2DecoderPlugin.cxx
+4
-6
No files found.
src/decoder/plugins/Mp4v2DecoderPlugin.cxx
View file @
e8a5a9b1
...
...
@@ -91,15 +91,14 @@ mp4_get_aac_track(MP4FileHandle handle, NeAACDecHandle decoder,
if
(
!
audio_format_init_checked
(
audio_format
,
sample_rate
,
SampleFormat
::
S16
,
channels
,
error
))
{
error
.
Set
(
mp4v2_decoder_domain
,
"Invalid audio format"
);
error
))
continue
;
}
return
id
;
}
error
.
Set
(
mp4v2_decoder_domain
,
"no valid aac track found"
);
return
MP4_INVALID_TRACK_ID
;
}
...
...
@@ -117,7 +116,6 @@ mp4_faad_new(MP4FileHandle handle, AudioFormat &audio_format, Error &error)
const
auto
track
=
mp4_get_aac_track
(
handle
,
decoder
,
audio_format
,
error
);
if
(
track
==
MP4_INVALID_TRACK_ID
)
{
LogError
(
error
);
NeAACDecClose
(
decoder
);
return
nullptr
;
}
...
...
@@ -132,7 +130,7 @@ mp4_file_decode(Decoder &mpd_decoder, Path path_fs)
if
(
handle
==
MP4_INVALID_FILE_HANDLE
)
{
FormatError
(
mp4v2_decoder_domain
,
"
U
nable to open file"
);
"
u
nable to open file"
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment