[FFmpeg-cvslog] r25602 - trunk/ffmpeg.c
cehoyos
subversion
Fri Oct 29 16:48:38 CEST 2010
Author: cehoyos
Date: Fri Oct 29 16:48:38 2010
New Revision: 25602
Log:
Move new_output_stream() up for upcoming fix for issue 2317.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Fri Oct 29 10:43:57 2010 (r25601)
+++ trunk/ffmpeg.c Fri Oct 29 16:48:38 2010 (r25602)
@@ -633,6 +633,27 @@ static void choose_pixel_fmt(AVStream *s
}
}
+static AVOutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
+{
+ int idx = oc->nb_streams - 1;
+ AVOutputStream *ost;
+
+ output_streams_for_file[file_idx] =
+ grow_array(output_streams_for_file[file_idx],
+ sizeof(*output_streams_for_file[file_idx]),
+ &nb_output_streams_for_file[file_idx],
+ oc->nb_streams);
+ ost = output_streams_for_file[file_idx][idx] =
+ av_mallocz(sizeof(AVOutputStream));
+ if (!ost) {
+ fprintf(stderr, "Could not alloc output stream\n");
+ ffmpeg_exit(1);
+ }
+ ost->file_index = file_idx;
+ ost->index = idx;
+ return ost;
+}
+
static int read_ffserver_streams(AVFormatContext *s, const char *filename)
{
int i, err;
@@ -3204,27 +3225,6 @@ static void check_audio_video_sub_inputs
*has_subtitle_ptr = has_subtitle;
}
-static AVOutputStream *new_output_stream(AVFormatContext *oc, int file_idx)
-{
- int idx = oc->nb_streams - 1;
- AVOutputStream *ost;
-
- output_streams_for_file[file_idx] =
- grow_array(output_streams_for_file[file_idx],
- sizeof(*output_streams_for_file[file_idx]),
- &nb_output_streams_for_file[file_idx],
- oc->nb_streams);
- ost = output_streams_for_file[file_idx][idx] =
- av_mallocz(sizeof(AVOutputStream));
- if (!ost) {
- fprintf(stderr, "Could not alloc output stream\n");
- ffmpeg_exit(1);
- }
- ost->file_index = file_idx;
- ost->index = idx;
- return ost;
-}
-
static void new_video_stream(AVFormatContext *oc, int file_idx)
{
AVStream *st;
More information about the ffmpeg-cvslog
mailing list