]> git.sesse.net Git - ffmpeg/commitdiff
ffmpeg: cosmetics: combine two variable declarations
authorAlexander Strange <astrange@ithinksw.com>
Mon, 21 Jun 2010 04:15:18 +0000 (04:15 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Mon, 21 Jun 2010 04:15:18 +0000 (04:15 +0000)
Originally committed as revision 23677 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index b8dbe367e19bd6cfa513f0f477e36ef20715fbaf..85983d5c704435465a06a7839e067718e115c2c6 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1514,7 +1514,6 @@ static int output_packet(AVInputStream *ist, int ist_index,
     void *buffer_to_free;
     static unsigned int samples_size= 0;
     AVSubtitle subtitle, *subtitle_to_free;
-    int got_subtitle;
 #if CONFIG_AVFILTER
     int frame_available;
 #endif
@@ -1609,10 +1608,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
                     break;
             case AVMEDIA_TYPE_SUBTITLE:
                 ret = avcodec_decode_subtitle2(ist->st->codec,
-                                               &subtitle, &got_subtitle, &avpkt);
+                                               &subtitle, &got_picture, &avpkt);
                 if (ret < 0)
                     goto fail_decode;
-                if (!got_subtitle) {
+                if (!got_picture) {
                     goto discard_packet;
                 }
                 subtitle_to_free = &subtitle;