Mercurial > libavcodec.hg
comparison libamr.c @ 6427:4c29380d2511 libavcodec
Define block size for AMR-WB (use IF2 table).
Spotted by John Fitzgerald: jjfitzgerald gmail com
author | benoit |
---|---|
date | Fri, 29 Feb 2008 07:59:29 +0000 |
parents | 0281d8efb050 |
children | 1d35fe8cd53c |
comparison
equal
deleted
inserted
replaced
6426:fd74b42a19f4 | 6427:4c29380d2511 |
---|---|
654 { | 654 { |
655 AMRWBContext *s = avctx->priv_data; | 655 AMRWBContext *s = avctx->priv_data; |
656 uint8_t*amrData=buf; | 656 uint8_t*amrData=buf; |
657 int mode; | 657 int mode; |
658 int packet_size; | 658 int packet_size; |
659 static const uint8_t block_size[16] = {18, 23, 33, 37, 41, 47, 51, 59, 61, 6, 6, 0, 0, 0, 1, 1}; | |
659 | 660 |
660 if(buf_size==0) { | 661 if(buf_size==0) { |
661 /* nothing to do */ | 662 /* nothing to do */ |
662 return 0; | 663 return 0; |
663 } | 664 } |