Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8880ca23
Commit
8880ca23
authored
Dec 09, 2015
by
Kieran Kunhya
Committed by
Rostislav Pehlivanov
Dec 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diracdec: Store version major/minor flags
parent
8eb6acef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
dirac.c
libavcodec/dirac.c
+7
-8
No files found.
libavcodec/dirac.c
View file @
8880ca23
...
...
@@ -297,22 +297,21 @@ int avpriv_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb,
DiracVersionInfo
*
version
,
int
*
bit_depth
)
{
unsigned
version_major
;
unsigned
video_format
,
picture_coding_mode
;
int
ret
;
/* [DIRAC_SPEC] 10.1 Parse Parameters. parse_parameters() */
version
_
major
=
svq3_get_ue_golomb
(
gb
);
svq3_get_ue_golomb
(
gb
);
/* version_minor */
version
->
major
=
svq3_get_ue_golomb
(
gb
);
version
->
minor
=
svq3_get_ue_golomb
(
gb
);
avctx
->
profile
=
svq3_get_ue_golomb
(
gb
);
avctx
->
level
=
svq3_get_ue_golomb
(
gb
);
/* [DIRAC_SPEC] sequence_header() -> base_video_format as defined in
* 10.2 Base Video Format, table 10.1 Dirac predefined video formats */
video_format
=
svq3_get_ue_golomb
(
gb
);
if
(
version
_
major
<
2
)
if
(
version
->
major
<
2
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Stream is old and may not work
\n
"
);
else
if
(
version
_
major
>
2
)
else
if
(
version
->
major
>
2
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Stream may have unhandled features
\n
"
);
if
(
video_format
>
20U
)
...
...
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