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
33a1f1a3
Commit
33a1f1a3
authored
May 27, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing stackoverflow
Originally committed as revision 618 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cd4af68a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ffmpeg.c
ffmpeg.c
+7
-2
No files found.
ffmpeg.c
View file @
33a1f1a3
...
...
@@ -417,10 +417,14 @@ static void do_video_out(AVFormatContext *s,
int
n1
,
n2
,
nb
,
i
,
ret
,
frame_number
,
dec_frame_rate
;
AVPicture
*
picture
,
*
picture2
,
*
pict
;
AVPicture
picture_tmp1
,
picture_tmp2
;
UINT8
video_buffer
[
1024
*
1024
]
;
UINT8
*
video_buffer
;
UINT8
*
buf
=
NULL
,
*
buf1
=
NULL
;
AVCodecContext
*
enc
,
*
dec
;
#define VIDEO_BUFFER_SIZE (1024*1024)
video_buffer
=
av_malloc
(
VIDEO_BUFFER_SIZE
);
if
(
!
video_buffer
)
return
;
enc
=
&
ost
->
st
->
codec
;
dec
=
&
ist
->
st
->
codec
;
...
...
@@ -501,7 +505,7 @@ static void do_video_out(AVFormatContext *s,
}
ret
=
avcodec_encode_video
(
enc
,
video_buffer
,
sizeof
(
video_buffer
),
video_buffer
,
VIDEO_BUFFER_SIZE
,
picture
);
//enc->frame_number = enc->real_pict_num;
s
->
oformat
->
write_packet
(
s
,
ost
->
index
,
video_buffer
,
ret
,
0
);
...
...
@@ -516,6 +520,7 @@ static void do_video_out(AVFormatContext *s,
the_end:
av_free
(
buf
);
av_free
(
buf1
);
av_free
(
video_buffer
);
}
static
void
do_video_stats
(
AVOutputStream
*
ost
,
...
...
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