mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Take ring frame into account when demuxing.
This fixes issue 97. Originally committed as revision 10192 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2e1ad4a28e
commit
2b71ddd96e
@ -28,6 +28,7 @@
|
||||
#include "bswap.h"
|
||||
|
||||
#define SMACKER_PAL 0x01
|
||||
#define SMACKER_FLAG_RING_FRAME 0x01
|
||||
|
||||
enum SAudFlags {
|
||||
SMK_AUD_PACKED = 0x80000000,
|
||||
@ -112,6 +113,8 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
smk->frames = get_le32(pb);
|
||||
smk->pts_inc = (int32_t)get_le32(pb);
|
||||
smk->flags = get_le32(pb);
|
||||
if(smk->flags & SMACKER_FLAG_RING_FRAME)
|
||||
smk->frames++;
|
||||
for(i = 0; i < 7; i++)
|
||||
smk->audio[i] = get_le32(pb);
|
||||
smk->treesize = get_le32(pb);
|
||||
|
Loading…
Reference in New Issue
Block a user