mfc: The first frame produces output in our case
This commit is contained in:
parent
0fbfe0225c
commit
710b7c3f2e
@ -290,9 +290,7 @@ struct mfc_dec_context* mfc_dec_create(unsigned int codec)
|
||||
pthread_mutex_unlock(&mutex);
|
||||
|
||||
ctx = calloc(1, sizeof (struct mfc_dec_context));
|
||||
// The first frame never generate any output.
|
||||
// TODO: do this better
|
||||
ctx->output_frames_available = -1;
|
||||
ctx->output_frames_available = 0;
|
||||
if (!ctx) {
|
||||
GST_ERROR ("Unable to allocate memory for context");
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user