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
25f35df1
Commit
25f35df1
authored
Feb 04, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xvid_rc: check that write() succeeded.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3b46daa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
libxvid_rc.c
libavcodec/libxvid_rc.c
+4
-1
No files found.
libavcodec/libxvid_rc.c
View file @
25f35df1
...
...
@@ -59,7 +59,10 @@ int ff_xvid_rate_control_init(MpegEncContext *s){
rce
->
skip_count
,
(
rce
->
i_tex_bits
+
rce
->
p_tex_bits
+
rce
->
misc_bits
+
7
)
/
8
,
(
rce
->
header_bits
+
rce
->
mv_bits
+
7
)
/
8
);
//av_log(NULL, AV_LOG_ERROR, "%s\n", tmp);
write
(
fd
,
tmp
,
strlen
(
tmp
));
if
(
write
(
fd
,
tmp
,
strlen
(
tmp
))
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error %s writing 2pass logfile
\n
"
,
strerror
(
errno
));
return
AVERROR
(
errno
);
}
}
close
(
fd
);
...
...
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