From 0a6c2d8c7f9e2330dda4991331eb308e76bcee7e Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 1 Feb 2011 19:47:55 +0000 Subject: [PATCH] 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 --- examples/storyboard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/storyboard.c b/examples/storyboard.c index ad4a688..35f1c57 100644 --- a/examples/storyboard.c +++ b/examples/storyboard.c @@ -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;