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
ca7cdffb
Commit
ca7cdffb
authored
Nov 11, 2016
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_filter: fix hwaccel transcoding
Based on a patch by Yogender Gupta <ygupta@nvidia.com>
parent
7112b56a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ffmpeg_filter.c
ffmpeg_filter.c
+3
-2
No files found.
ffmpeg_filter.c
View file @
ca7cdffb
...
...
@@ -1142,8 +1142,9 @@ int ifilter_parameters_from_decoder(InputFilter *ifilter, const AVCodecContext *
ifilter
->
channels
=
avctx
->
channels
;
ifilter
->
channel_layout
=
avctx
->
channel_layout
;
if
(
avctx
->
hw_frames_ctx
)
{
ifilter
->
hw_frames_ctx
=
av_buffer_ref
(
avctx
->
hw_frames_ctx
);
if
(
ifilter
->
ist
&&
ifilter
->
ist
->
hw_frames_ctx
)
{
ifilter
->
format
=
ifilter
->
ist
->
resample_pix_fmt
;
ifilter
->
hw_frames_ctx
=
av_buffer_ref
(
ifilter
->
ist
->
hw_frames_ctx
);
if
(
!
ifilter
->
hw_frames_ctx
)
return
AVERROR
(
ENOMEM
);
}
...
...
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