# HG changeset patch # User kostya # Date 1147835033 0 # Node ID 0319672689ef962f5ae7ef5a82399ec1de3639f0 # Parent e7fd91082489477bd9dcc3ccaf6640af0b051eb9 Now MPlayer should understand Smacker audio and video codecs. diff -r e7fd91082489 -r 0319672689ef smacker.c --- a/smacker.c Mon May 15 17:11:50 2006 +0000 +++ b/smacker.c Wed May 17 03:03:53 2006 +0000 @@ -156,7 +156,7 @@ st->codec->pix_fmt = PIX_FMT_PAL8; st->codec->codec_type = CODEC_TYPE_VIDEO; st->codec->codec_id = CODEC_ID_SMACKVIDEO; - st->codec->codec_tag = smk->is_ver4; + st->codec->codec_tag = smk->magic; /* Smacker uses 100000 as internal timebase */ if(smk->pts_inc < 0) smk->pts_inc = -smk->pts_inc; @@ -174,7 +174,7 @@ av_set_pts_info(ast[i], 33, smk->pts_inc, tbase); ast[i]->codec->codec_type = CODEC_TYPE_AUDIO; ast[i]->codec->codec_id = (smk->rates[i] & SMK_AUD_PACKED) ? CODEC_ID_SMACKAUDIO : CODEC_ID_PCM_U8; - ast[i]->codec->codec_tag = 0; + ast[i]->codec->codec_tag = MKTAG('S', 'M', 'K', 'A'); ast[i]->codec->channels = (smk->rates[i] & SMK_AUD_STEREO) ? 2 : 1; ast[i]->codec->sample_rate = smk->rates[i] & 0xFFFFFF; ast[i]->codec->bits_per_sample = (smk->rates[i] & SMK_AUD_16BITS) ? 16 : 8;