Skip to content

Conversation

@jdek
Copy link

@jdek jdek commented Oct 23, 2018

Source from lavc, Source/Sink for Blackmagic

@cmassiot
Copy link
Collaborator

I guess we do not have a recent enough version of ffmpeg to build it ?

@jdek
Copy link
Author

jdek commented Oct 29, 2018

Yes, I guess I would need to add some sort of guard for ffmpeg version?

@cmassiot
Copy link
Collaborator

Yes it would be lovely.

@nto
Copy link
Collaborator

nto commented Nov 23, 2018

Just add a check for the needed ffmpeg symbols in configure, so you don't need to depend on a specific release.

if (side_data) {
uref_pic_set_s12m(uref, side_data->data, side_data->size);
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using the AV_FRAME_DATA_S12M_TIMECODE macro to check for availability :

#ifdef AV_FRAME_DATA_S12M_TIMECODE
     side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_S12M_TIMECODE);
     if (side_data) {
         uref_pic_set_s12m(uref, side_data->data, side_data->size);
     }
#endif

@JDarnley JDarnley mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants