Build ChatListUI

This commit is contained in:
Ali
2020-02-22 15:38:54 +04:00
parent f57d6b6168
commit 5380b12805
1510 changed files with 643 additions and 309 deletions

View File

@@ -0,0 +1,34 @@
#import <FFMpegBinding/FFMpegAVCodec.h>
#import "libavcodec/avcodec.h"
@interface FFMpegAVCodec () {
AVCodec *_impl;
}
@end
@implementation FFMpegAVCodec
- (instancetype)initWithImpl:(AVCodec *)impl {
self = [super init];
if (self != nil) {
_impl = impl;
}
return self;
}
+ (FFMpegAVCodec * _Nullable)findForId:(int)codecId {
AVCodec *codec = avcodec_find_decoder(codecId);
if (codec) {
return [[FFMpegAVCodec alloc] initWithImpl:codec];
} else {
return nil;
}
}
- (void *)impl {
return _impl;
}
@end