[FFmpeg-devel] [PATCH 3/4] avdevice/decklink_enc: convert AVFMT_RAWPICTURE to AV_CODEC_ID_WRAPPED_AVFRAME

Matthias Hunstock atze at fem.tu-ilmenau.de
Thu Feb 23 23:31:39 EET 2017


Am 23.02.2017 um 21:58 schrieb wm4:
>> +    virtual ULONG   STDMETHODCALLTYPE AddRef(void)
>> +    virtual ULONG   STDMETHODCALLTYPE Release(void)
>> +    {
>> +        int ret = avpriv_atomic_int_add_and_fetch(&_refs, -1);
>> +        if (!ret) {
>> +            av_frame_free(&_avframe);
> Wouldn't this normally be in a constructor? OK, probably doesn't matter.
> 

These method declarations are predefined by the DeckLink SDK interface.

Matthias


More information about the ffmpeg-devel mailing list