diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-03-03 14:54:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-03 14:54:00 +0000 |
commit | b0368839ac6de47dee3e971c709676d9635865e9 (patch) | |
tree | d2f5240d3726509118642a98d11adfdd21d73d07 /ffmpeg.c | |
parent | a5dbb247af9f02cff4899f16d3a87f49fe16727a (diff) | |
download | ffmpeg-b0368839ac6de47dee3e971c709676d9635865e9.tar.gz |
MpegEncContext.(i)dct_* -> DspContext.(i)dct_*
bitexact cleanup
Originally committed as revision 1617 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -154,6 +154,7 @@ static int do_play = 0; static int do_psnr = 0; static int do_vstats = 0; static int do_pass = 0; +static int bitexact = 0; static char *pass_logfilename = NULL; static int audio_stream_copy = 0; static int video_stream_copy = 0; @@ -2075,6 +2076,9 @@ static void opt_input_file(const char *filename) enc->flags|= CODEC_FLAG_TRUNCATED; */ if(/*enc->codec_id==CODEC_ID_MPEG4 || */enc->codec_id==CODEC_ID_MPEG1VIDEO) enc->flags|= CODEC_FLAG_TRUNCATED; + + if(bitexact) + enc->flags|= CODEC_FLAG_BITEXACT; if (enc->frame_rate != rfps) { fprintf(stderr,"\nSeems that stream %d comes from film source: %2.2f->%2.2f\n", @@ -2219,7 +2223,10 @@ static void opt_output_file(const char *filename) video_enc->flags |= CODEC_FLAG_QSCALE; st->quality = video_qscale; } - + + if(bitexact) + video_enc->flags |= CODEC_FLAG_BITEXACT; + if (use_hq) { video_enc->flags |= CODEC_FLAG_HQ; } @@ -2557,7 +2564,7 @@ extern int ffm_nopts; static void opt_bitexact(void) { - avcodec_set_bit_exact(); + bitexact=1; /* disable generate of real time pts in ffm (need to be supressed anyway) */ ffm_nopts = 1; } |