Commit e3a2bb88 authored by mru's avatar mru

return 0 from encode_picture() and estimate_qp() on success


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6363 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fbb93b24
...@@ -5494,6 +5494,7 @@ static int estimate_qp(MpegEncContext *s, int dry_run){ ...@@ -5494,6 +5494,7 @@ static int estimate_qp(MpegEncContext *s, int dry_run){
s->lambda= s->current_picture.quality; s->lambda= s->current_picture.quality;
//printf("%d %d\n", s->avctx->global_quality, s->current_picture.quality); //printf("%d %d\n", s->avctx->global_quality, s->current_picture.quality);
update_qscale(s); update_qscale(s);
return 0;
} }
static int encode_picture(MpegEncContext *s, int picture_number) static int encode_picture(MpegEncContext *s, int picture_number)
...@@ -5709,6 +5710,7 @@ static int encode_picture(MpegEncContext *s, int picture_number) ...@@ -5709,6 +5710,7 @@ static int encode_picture(MpegEncContext *s, int picture_number)
merge_context_after_encode(s, s->thread_context[i]); merge_context_after_encode(s, s->thread_context[i]);
} }
emms_c(); emms_c();
return 0;
} }
static void denoise_dct_c(MpegEncContext *s, DCTELEM *block){ static void denoise_dct_c(MpegEncContext *s, DCTELEM *block){
......
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