Displaying 2 results from an estimated 2 matches for "audio_buf".
Did you mean:
aio_buf
2004 Nov 20
0
ffmpeg2theora start and end time support
...{
AVFrame *frame=NULL;
AVFrame *frame_tmp=NULL;
AVFrame *output=NULL;
AVFrame *output_tmp=NULL;
AVFrame *output_resized=NULL;
AVFrame *output_buffered=NULL;
AVPacket pkt;
int len;
int len1;
int got_picture;
int first = 1;
int e_o_s=0;
int ret;
uint8_t *ptr;
int16_t *audio_buf= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
int16_t *resampled= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
if(this->video_index >= 0)
info.audio_only=0;
else
info.audio_only=1;
if(this->audio_index>=0)
info.video_only=0;
else
info.video_only=1;
if(!inf...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...+ if(theoraframes_add_video(&info, output_resized->data[0],
this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
//this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
ret = -1;
@@ -529,7 +529,7 @@
resampled=audio_buf;
}
}
- if (theoraframes_add_audio(resampled,
+ if (theoraframes_add_audio(&info, resampled,
samples_out *(this->channels),samples_out,e_o_s)){
ret = -1;
fprintf (stderr,"No audio frames available\n");
@@ -541,7 +541,7 @@
}
/* fl...