mirror of https://git.ffmpeg.org/ffmpeg.git
libxvid: drop some pointless dead code
This commit is contained in:
parent
dac79c2737
commit
7a0cb74fee
|
@ -30,16 +30,12 @@
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
extern unsigned int xvid_debug;
|
|
||||||
|
|
||||||
int ff_xvid_rate_control_init(MpegEncContext *s){
|
int ff_xvid_rate_control_init(MpegEncContext *s){
|
||||||
char *tmp_name;
|
char *tmp_name;
|
||||||
int fd, i;
|
int fd, i;
|
||||||
xvid_plg_create_t xvid_plg_create = { 0 };
|
xvid_plg_create_t xvid_plg_create = { 0 };
|
||||||
xvid_plugin_2pass2_t xvid_2pass2 = { 0 };
|
xvid_plugin_2pass2_t xvid_2pass2 = { 0 };
|
||||||
|
|
||||||
//xvid_debug=-1;
|
|
||||||
|
|
||||||
fd=ff_tempfile("xvidrc.", &tmp_name);
|
fd=ff_tempfile("xvidrc.", &tmp_name);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
|
av_log(NULL, AV_LOG_ERROR, "Can't create temporary pass2 file.\n");
|
||||||
|
@ -57,7 +53,6 @@ int ff_xvid_rate_control_init(MpegEncContext *s){
|
||||||
frame_types[rce->pict_type], (int)lrintf(rce->qscale / FF_QP2LAMBDA), rce->i_count, s->mb_num - rce->i_count - rce->skip_count,
|
frame_types[rce->pict_type], (int)lrintf(rce->qscale / FF_QP2LAMBDA), rce->i_count, s->mb_num - rce->i_count - rce->skip_count,
|
||||||
rce->skip_count, (rce->i_tex_bits + rce->p_tex_bits + rce->misc_bits+7)/8, (rce->header_bits+rce->mv_bits+7)/8);
|
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));
|
write(fd, tmp, strlen(tmp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue