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
95342235
Commit
95342235
authored
Apr 17, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
segfault fix
Originally committed as revision 1784 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c9b99ea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
raw.c
libavcodec/raw.c
+5
-0
No files found.
libavcodec/raw.c
View file @
95342235
...
...
@@ -52,6 +52,7 @@ typedef struct RawVideoContext {
unsigned
char
*
buffer
;
/* block of memory for holding one frame */
unsigned
char
*
p
;
/* current position in buffer */
int
length
;
/* number of bytes in buffer */
AVFrame
pic
;
///< AVCodecContext.coded_frame
}
RawVideoContext
;
...
...
@@ -67,6 +68,10 @@ static int raw_init(AVCodecContext *avctx)
context
->
buffer
=
av_malloc
(
context
->
length
);
context
->
p
=
context
->
buffer
;
context
->
pic
.
pict_type
=
FF_I_TYPE
;
context
->
pic
.
key_frame
=
1
;
avctx
->
coded_frame
=
&
context
->
pic
;
if
(
!
context
->
buffer
)
{
return
-
1
;
}
...
...
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