Commit d128794f authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a1e2c47c'

* commit 'a1e2c47c':
  libxvid: Return meaningful error messages

Conflicts:
	libavcodec/libxvid.c
	libavcodec/libxvid_rc.c

See: 2a89afb3 and others
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 2e786bc4 a1e2c47c
......@@ -47,9 +47,9 @@ av_cold int ff_xvid_rate_control_init(MpegEncContext *s)
xvid_plugin_2pass2_t xvid_2pass2 = { 0 };
fd = av_tempfile("xvidrc.", &tmp_name, 0, s->avctx);
if (fd == -1) {
if (fd < 0) {
av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
return -1;
return fd;
}
for (i = 0; i < s->rc_context.num_entries; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment