Mercurial > libavcodec.hg
comparison vorbis_enc.c @ 3824:61d312116e71 libavcodec
Original Commit: r18 | ods15 | 2006-09-22 12:29:26 +0300 (Fri, 22 Sep 2006) | 2 lines
add ability to run encoder for testing purposes...
author | ods15 |
---|---|
date | Mon, 02 Oct 2006 05:55:45 +0000 |
parents | 41ad23b61a2c |
children | 9983437a00a1 |
comparison
equal
deleted
inserted
replaced
3823:41ad23b61a2c | 3824:61d312116e71 |
---|---|
481 int samples = data ? VORBIS_FRAME_SIZE : 0; | 481 int samples = data ? VORBIS_FRAME_SIZE : 0; |
482 | 482 |
483 avccontext->coded_frame->pts = av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base); | 483 avccontext->coded_frame->pts = av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base); |
484 memcpy(packets, compressed_frame, l); | 484 memcpy(packets, compressed_frame, l); |
485 #endif | 485 #endif |
486 return 0; | 486 return data ? 50 : 0; |
487 } | 487 } |
488 | 488 |
489 | 489 |
490 static int vorbis_encode_close(AVCodecContext * avccontext) | 490 static int vorbis_encode_close(AVCodecContext * avccontext) |
491 { | 491 { |