|
|
|
@ -34,6 +34,8 @@ |
|
|
|
|
|
|
|
|
|
#define SMACKER_PAL 0x01 |
|
|
|
|
#define SMACKER_FLAG_RING_FRAME 0x01 |
|
|
|
|
#define SMACKER_FLAG_Y_INTERLACE (1 << 1) |
|
|
|
|
#define SMACKER_FLAG_Y_DOUBLE (1 << 2) |
|
|
|
|
|
|
|
|
|
enum SAudFlags { |
|
|
|
|
SMK_AUD_PACKED = 0x80, |
|
|
|
@ -144,6 +146,9 @@ static int smacker_read_header(AVFormatContext *s) |
|
|
|
|
avpriv_set_pts_info(st, 33, pts_inc, tbase); |
|
|
|
|
st->duration = smk->frames; |
|
|
|
|
|
|
|
|
|
st->sample_aspect_ratio = (AVRational){ 1, 1 + |
|
|
|
|
!!(flags & (SMACKER_FLAG_Y_INTERLACE | SMACKER_FLAG_Y_DOUBLE)) }; |
|
|
|
|
|
|
|
|
|
/* init video codec */ |
|
|
|
|
par = st->codecpar; |
|
|
|
|
par->width = width; |
|
|
|
|