Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
83678dbb
Commit
83678dbb
authored
Aug 31, 2018
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libopenh264dec: Export the decoded profile and level in AVCodecContext
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
8c76bfac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
libopenh264dec.c
libavcodec/libopenh264dec.c
+9
-0
No files found.
libavcodec/libopenh264dec.c
View file @
83678dbb
...
...
@@ -95,6 +95,9 @@ static int svc_decode_frame(AVCodecContext *avctx, void *data,
int
linesize
[
3
];
AVFrame
*
avframe
=
data
;
DECODING_STATE
state
;
#if OPENH264_VER_AT_LEAST(1, 7)
int
opt
;
#endif
if
(
!
avpkt
->
data
)
{
#if OPENH264_VER_AT_LEAST(1, 9)
...
...
@@ -135,6 +138,12 @@ static int svc_decode_frame(AVCodecContext *avctx, void *data,
FF_DISABLE_DEPRECATION_WARNINGS
avframe
->
pkt_pts
=
avpkt
->
pts
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
#if OPENH264_VER_AT_LEAST(1, 7)
(
*
s
->
decoder
)
->
GetOption
(
s
->
decoder
,
DECODER_OPTION_PROFILE
,
&
opt
);
avctx
->
profile
=
opt
;
(
*
s
->
decoder
)
->
GetOption
(
s
->
decoder
,
DECODER_OPTION_LEVEL
,
&
opt
);
avctx
->
level
=
opt
;
#endif
*
got_frame
=
1
;
...
...
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