Esempio n. 1
0
void release_nuppel_buffer(void *opaque, uint8_t *data)
{
    VideoFrame *frame = (VideoFrame*)data;
    NuppelDecoder *nd = (NuppelDecoder*)opaque;
    if (nd && nd->GetPlayer())
        nd->GetPlayer()->DeLimboFrame(frame);
}
Esempio n. 2
0
void release_nuppel_buffer(struct AVCodecContext *c, AVFrame *pic)
{
    (void)c;
    assert(pic->type == FF_BUFFER_TYPE_USER);

    NuppelDecoder *nd = (NuppelDecoder *)(c->opaque);
    if (nd && nd->GetPlayer())
        nd->GetPlayer()->DeLimboFrame((VideoFrame*)pic->opaque);

    int i;
    for (i = 0; i < 4; i++)
        pic->data[i] = NULL;
}