implement new grabbing interface, as described here:
ttp://thread.gmane.org/gmane.comp.video.ffmpeg.devel/42920 patch by Ramiro Polla % ramiro A lisha P ufsc P br % Original thread: Date: Jan 31, 2007 8:56 PM Subject: [Ffmpeg-devel] [PATCH] New grabbing interface Originally committed as revision 7983 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2012121363
commit
cc58300e30
11 changed files with 25 additions and 212 deletions
|
@ -361,7 +361,7 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap)
|
|||
s->sample_rate = ap->sample_rate;
|
||||
s->channels = ap->channels;
|
||||
|
||||
ret = audio_open(s, 0, ap->device);
|
||||
ret = audio_open(s, 0, s1->filename);
|
||||
if (ret < 0) {
|
||||
av_free(st);
|
||||
return AVERROR(EIO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue