Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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
vlc-2-2
Commits
0ec02c3d
Commit
0ec02c3d
authored
May 27, 2013
by
Rafaël Carré
Committed by
Rémi Denis-Courmont
Jun 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg_GetFrameBuf: simplify
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
67464c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-11
No files found.
modules/codec/avcodec/video.c
View file @
0ec02c3d
...
...
@@ -901,6 +901,9 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
/* */
p_ff_pic
->
opaque
=
NULL
;
#if LIBAVCODEC_VERSION_MAJOR < 54
p_ff_pic
->
age
=
256
*
256
*
256
*
64
;
#endif
if
(
p_sys
->
p_va
)
{
...
...
@@ -913,18 +916,13 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
return
-
1
;
}
/* */
p_ff_pic
->
type
=
FF_BUFFER_TYPE_USER
;
#if LIBAVCODEC_VERSION_MAJOR < 54
p_ff_pic
->
age
=
256
*
256
*
256
*
64
;
#endif
if
(
vlc_va_Get
(
p_sys
->
p_va
,
p_ff_pic
)
)
{
msg_Err
(
p_dec
,
"VaGrabSurface failed"
);
return
-
1
;
}
p_ff_pic
->
type
=
FF_BUFFER_TYPE_USER
;
return
0
;
}
else
if
(
!
p_sys
->
b_direct_rendering
)
...
...
@@ -1008,10 +1006,6 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
p_ff_pic
->
linesize
[
2
]
=
p_pic
->
p
[
2
].
i_pitch
;
p_ff_pic
->
linesize
[
3
]
=
0
;
#if LIBAVCODEC_VERSION_MAJOR < 54
p_ff_pic
->
age
=
256
*
256
*
256
*
64
;
#endif
post_mt
(
p_sys
);
return
0
;
...
...
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