Changeset 3628


Ignore:
Timestamp:
Jul 12, 2011 10:54:56 AM (9 years ago)
Author:
bennylp
Message:

More re #1284: generate PJMEDIA_EVENT_KEY_FRAME_FOUND from ffmpeg_codecs.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c

    r3622 r3628  
    14461446        output->type = PJMEDIA_FRAME_TYPE_VIDEO; 
    14471447        output->size = vafp->framebytes; 
     1448 
     1449        /* Check if we got key frame */ 
     1450        if (avframe.key_frame && pjmedia_event_publisher_has_sub(&codec->epub)) 
     1451        { 
     1452            pjmedia_event event; 
     1453 
     1454            pjmedia_event_init(&event, PJMEDIA_EVENT_KEY_FRAME_FOUND, 
     1455                               &output->timestamp, &codec->epub); 
     1456            pjmedia_event_publish(&codec->epub, &event); 
     1457        } 
    14481458    } else { 
    14491459        output->type = PJMEDIA_FRAME_TYPE_NONE; 
Note: See TracChangeset for help on using the changeset viewer.