copy_picture_range(h->delayed_pic, h1->delayed_pic, MAX_DELAYED_PIC_COUNT+2, s, s1);
h->last_slice_type = h1->last_slice_type;
+ h->sync = h1->sync;
if(!s->current_picture_ptr) return 0;
av_log(s->avctx, AV_LOG_DEBUG, "no picture\n");
}
+ if (h->next_output_pic && h->next_output_pic->sync) {
+ h->sync |= 2*!!h->next_output_pic->f.key_frame;
+ }
+
if (setup_finished)
ff_thread_finish_setup(s->avctx);
}
*data_size = 0; /* Wait for second field. */
if (h->next_output_pic && h->next_output_pic->sync) {
- h->sync |= 2*!!h->next_output_pic->f.key_frame;
if(h->sync>1 || h->next_output_pic->f.pict_type != AV_PICTURE_TYPE_B){
*data_size = sizeof(AVFrame);
*pict = *(AVFrame*)h->next_output_pic;