*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "avcodec.h"
long loop_start_byte;
long loop_end_sample;
long loop_end_byte;
- long
+ long
*/
} adxhdr; /* big endian */
/* offset-6 "(c)CRI" */
// avctx->bit_rate = avctx->sample_rate*avctx->channels*18*8/32;
- printf("adx encode init\n"); fflush(stdout);
+ av_log(avctx, AV_LOG_DEBUG, "adx encode init\n");
adx_decode_init(avctx);
return 0;
return 0;
}
+#if 0
static void dump(unsigned char *buf,size_t len)
{
int i;
for(i=0;i<len;i++) {
- if ((i&15)==0) printf("%04x ",i);
- printf("%02x ",buf[i]);
- if ((i&15)==15) printf("\n");
+ if ((i&15)==0) av_log(NULL, AV_LOG_DEBUG, "%04x ",i);
+ av_log(NULL, AV_LOG_DEBUG, "%02x ",buf[i]);
+ if ((i&15)==15) av_log(NULL, AV_LOG_DEBUG, "\n");
}
- printf("\n");
+ av_log(NULL, AV_LOG_ERROR, "\n");
}
+#endif
+
static int adx_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf0, int buf_size)