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
59a78290
Commit
59a78290
authored
May 28, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: use getter/setter functions for AVFrame.pkt_pos
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ea60a11e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
avcodec.c
libavfilter/avcodec.c
+2
-2
buffer.c
libavfilter/buffer.c
+1
-1
No files found.
libavfilter/avcodec.c
View file @
59a78290
...
...
@@ -60,7 +60,7 @@ int avfilter_fill_frame_from_audio_buffer_ref(AVFrame *frame,
memcpy
(
frame
->
data
,
samplesref
->
data
,
sizeof
(
frame
->
data
));
memcpy
(
frame
->
linesize
,
samplesref
->
linesize
,
sizeof
(
frame
->
linesize
));
frame
->
pkt_pos
=
samplesref
->
pos
;
av_frame_set_pkt_pos
(
frame
,
samplesref
->
pos
)
;
frame
->
format
=
samplesref
->
format
;
frame
->
nb_samples
=
samplesref
->
audio
->
nb_samples
;
frame
->
pts
=
samplesref
->
pts
;
...
...
@@ -78,7 +78,7 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame,
memcpy
(
frame
->
data
,
picref
->
data
,
sizeof
(
frame
->
data
));
memcpy
(
frame
->
linesize
,
picref
->
linesize
,
sizeof
(
frame
->
linesize
));
frame
->
pkt_pos
=
picref
->
pos
;
av_frame_set_pkt_pos
(
frame
,
picref
->
pos
)
;
frame
->
interlaced_frame
=
picref
->
video
->
interlaced
;
frame
->
top_field_first
=
picref
->
video
->
top_field_first
;
frame
->
key_frame
=
picref
->
video
->
key_frame
;
...
...
libavfilter/buffer.c
View file @
59a78290
...
...
@@ -166,7 +166,7 @@ void avfilter_unref_bufferp(AVFilterBufferRef **ref)
int
avfilter_copy_frame_props
(
AVFilterBufferRef
*
dst
,
const
AVFrame
*
src
)
{
dst
->
pts
=
src
->
pts
;
dst
->
pos
=
src
->
pkt_pos
;
dst
->
pos
=
av_frame_get_pkt_pos
(
src
)
;
dst
->
format
=
src
->
format
;
switch
(
dst
->
type
)
{
...
...
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