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
26fa8410
Commit
26fa8410
authored
Jul 08, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paf: properly flag video packets
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
ca1f2b3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
paf.c
libavformat/paf.c
+3
-1
No files found.
libavformat/paf.c
View file @
26fa8410
...
...
@@ -232,7 +232,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
}
size
=
p
->
video_size
-
p
->
frames_offset_table
[
p
->
current_frame
];
if
(
size
<
0
)
if
(
size
<
1
)
return
AVERROR_INVALIDDATA
;
if
(
av_new_packet
(
pkt
,
size
)
<
0
)
...
...
@@ -241,6 +241,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
pkt
->
stream_index
=
0
;
pkt
->
duration
=
1
;
memcpy
(
pkt
->
data
,
p
->
video_frame
+
p
->
frames_offset_table
[
p
->
current_frame
],
size
);
if
(
pkt
->
data
[
0
]
&
0x20
)
pkt
->
flags
|=
AV_PKT_FLAG_KEY
;
p
->
current_frame
++
;
return
pkt
->
size
;
...
...
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