Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
f81afab2
Commit
f81afab2
authored
Jun 28, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jan 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for
MPEG-4
audio descriptor
Signed-off-by:
Jean-Paul Saman
<
jpsaman@videolan.org
>
parent
457a9287
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
4 deletions
+33
-4
misc/dr.xml
misc/dr.xml
+5
-1
misc/test_dr.c
misc/test_dr.c
+28
-3
No files found.
misc/dr.xml
View file @
f81afab2
...
...
@@ -122,9 +122,13 @@
<integer
name=
"i_max_gop_length"
bitcount=
"14"
default=
"1"
/>
</descriptor>
<descriptor
name=
"MPEG-4 video
profile
"
sname=
"mpeg4_video"
fname=
"MPEG4Video"
gen_args=
"1"
>
<descriptor
name=
"MPEG-4 video"
sname=
"mpeg4_video"
fname=
"MPEG4Video"
gen_args=
"1"
>
<integer
name=
"i_mpeg4_visual_profile_and_level"
bitcount=
"8"
default=
"0"
/>
</descriptor>
<descriptor
name=
"MPEG-4 audio"
sname=
"mpeg4_audio"
fname=
"MPEG4Audio"
gen_args=
"1"
>
<integer
name=
"i_mpeg4_audio_profile_and_level"
bitcount=
"8"
default=
"0"
/>
</descriptor>
<!--
<descriptor name="stuffing" sname="stuffing" fname="Stuffing">
<insert>
...
...
misc/test_dr.c
View file @
f81afab2
...
...
@@ -764,11 +764,11 @@ static int main_ibp_(void)
return
i_err
;
}
/* MPEG-4 video
profile
*/
/* MPEG-4 video */
static
int
main_mpeg4_video_
(
void
)
{
BOZO_VARS
(
mpeg4_video
);
BOZO_START
(
MPEG
-
4
video
profile
);
BOZO_START
(
MPEG
-
4
video
);
#define dvbpsi_GenMPEG4VideoDr(x,y) \
...
...
@@ -783,7 +783,31 @@ static int main_mpeg4_video_(void)
BOZO_end_integer
(
i_mpeg4_visual_profile_and_level
,
8
)
BOZO_END
(
MPEG
-
4
video
profile
);
BOZO_END
(
MPEG
-
4
video
);
return
i_err
;
}
/* MPEG-4 audio */
static
int
main_mpeg4_audio_
(
void
)
{
BOZO_VARS
(
mpeg4_audio
);
BOZO_START
(
MPEG
-
4
audio
);
#define dvbpsi_GenMPEG4AudioDr(x,y) \
dvbpsi_GenMPEG4AudioDr(x)
/* check i_mpeg4_audio_profile_and_level */
BOZO_init_integer
(
i_mpeg4_audio_profile_and_level
,
0
);
BOZO_begin_integer
(
i_mpeg4_audio_profile_and_level
,
8
)
BOZO_DOJOB
(
MPEG4Audio
);
BOZO_check_integer
(
i_mpeg4_audio_profile_and_level
,
8
)
BOZO_CLEAN
();
BOZO_end_integer
(
i_mpeg4_audio_profile_and_level
,
8
)
BOZO_END
(
MPEG
-
4
audio
);
return
i_err
;
}
...
...
@@ -837,6 +861,7 @@ int main(void)
i_err
|=
main_std_
();
i_err
|=
main_ibp_
();
i_err
|=
main_mpeg4_video_
();
i_err
|=
main_mpeg4_audio_
();
i_err
|=
main_service_
();
if
(
i_err
)
...
...
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