#include "hb.h"
-#include "ffmpeg/avcodec.h"
-#include "ffmpeg/swscale.h"
+#include "libavcodec/avcodec.h"
+#include "libswscale/swscale.h"
struct hb_work_private_s
{
hb_buffer_t * in = *buf_in, * buf_tmp_in = *buf_in;
hb_buffer_t * ivtc_buffer = NULL;
- if(!in->data)
+ if( in->size <= 0 )
{
/* If the input buffer is end of stream, send out an empty one
* to the next stage as well. Note that this will result in us
* losing the current contents of the delay queue.
*/
- *buf_out = job->indepth_scan? NULL : hb_buffer_init(0);
+ *buf_out = in;
+ *buf_in = NULL;
return HB_WORK_DONE;
}
/* Pop the frame's subtitle and dispose of it. */
hb_buffer_t * subtitles = hb_fifo_get( pv->subtitle_queue );
hb_buffer_close( &subtitles );
-
buf_tmp_in = NULL;
+ break;
}
else
{
buf_tmp_in = buf_tmp_out;
}
- break;
}
}
}
if( job->vfr )
{
- if( hb_fifo_size( pv->delay_queue ) >= 3 )
+ if( hb_fifo_size( pv->delay_queue ) >= 4 )
{
*buf_out = hb_fifo_get( pv->delay_queue );
}