| 107 | } |
| 108 | |
| 109 | static FrameProgress *alloc_progress(void) |
| 110 | { |
| 111 | FrameProgress *p = av_refstruct_alloc_ext(sizeof(*p), 0, NULL, free_progress); |
| 112 | |
| 113 | if (p) { |
| 114 | p->has_lock = !ff_mutex_init(&p->lock, NULL); |
| 115 | p->has_cond = !ff_cond_init(&p->cond, NULL); |
| 116 | if (!p->has_lock || !p->has_cond) |
| 117 | av_refstruct_unref(&p); |
| 118 | } |
| 119 | return p; |
| 120 | } |
| 121 | |
| 122 | static VVCFrame *alloc_frame(VVCContext *s, VVCFrameContext *fc) |
| 123 | { |
no test coverage detected