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
e1d993d8
Commit
e1d993d8
authored
Oct 18, 2019
by
Linjie Fu
Committed by
Zhong Li
Oct 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/qsvdec: remove unused check_dec_param
Signed-off-by:
Linjie Fu
<
linjie.fu@intel.com
>
parent
1aa4fc1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
qsvdec.c
libavcodec/qsvdec.c
+0
-27
No files found.
libavcodec/qsvdec.c
View file @
e1d993d8
...
...
@@ -164,33 +164,6 @@ static inline unsigned int qsv_fifo_size(const AVFifoBuffer* fifo)
return
av_fifo_size
(
fifo
)
/
qsv_fifo_item_size
();
}
static
int
check_dec_param
(
AVCodecContext
*
avctx
,
QSVContext
*
q
,
mfxVideoParam
*
param_in
)
{
mfxVideoParam
param_out
=
{
.
mfx
.
CodecId
=
param_in
->
mfx
.
CodecId
};
mfxStatus
ret
;
#define CHECK_MATCH(x) \
do { \
if (param_out.mfx.x != param_in->mfx.x) { \
av_log(avctx, AV_LOG_WARNING, "Required "#x" %d is unsupported\n", \
param_in->mfx.x); \
} \
} while (0)
ret
=
MFXVideoDECODE_Query
(
q
->
session
,
param_in
,
&
param_out
);
if
(
ret
<
0
)
{
CHECK_MATCH
(
CodecId
);
CHECK_MATCH
(
CodecProfile
);
CHECK_MATCH
(
CodecLevel
);
CHECK_MATCH
(
FrameInfo
.
Width
);
CHECK_MATCH
(
FrameInfo
.
Height
);
#undef CHECK_MATCH
return
0
;
}
return
1
;
}
static
int
qsv_decode_preinit
(
AVCodecContext
*
avctx
,
QSVContext
*
q
,
enum
AVPixelFormat
pix_fmt
,
mfxVideoParam
*
param
)
{
mfxSession
session
=
NULL
;
...
...
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