Browse Source

Only use first stream in the storyboard code.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4736 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 14 years ago
parent
commit
0a6c2d8c7f
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      examples/storyboard.c

+ 3
- 0
examples/storyboard.c View File

@@ -73,7 +73,10 @@ int main(int argc, char *argv[])
stream = -1;
for(i = 0; stream == -1 && i < (int)fmt->nb_streams; i++)
if(fmt->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
{
stream = i;
break;
}
if(stream == -1)
return EXIT_FAILURE;
ctx = fmt->streams[stream]->codec;


Loading…
Cancel
Save