[FFmpeg-soc] [soc]: r5093 - concat/libavformat/utils.c.diff
gkovacs
subversion at mplayerhq.hu
Thu Aug 13 22:27:43 CEST 2009
Author: gkovacs
Date: Thu Aug 13 22:27:42 2009
New Revision: 5093
Log:
initialize stream_index while declaring variable in av_read_frame_internal
Modified:
concat/libavformat/utils.c.diff
Modified: concat/libavformat/utils.c.diff
==============================================================================
--- concat/libavformat/utils.c.diff Thu Aug 13 22:24:33 2009 (r5092)
+++ concat/libavformat/utils.c.diff Thu Aug 13 22:27:42 2009 (r5093)
@@ -1,5 +1,5 @@
diff --git a/libavformat/utils.c b/libavformat/utils.c
-index 0c1a50d..f1b86a3 100644
+index 0c1a50d..c9ea489 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -27,6 +27,7 @@
@@ -46,16 +46,15 @@ index 0c1a50d..f1b86a3 100644
/* Do not open file if the format does not need it. XXX: specific
hack needed to handle RTSP/TCP */
if (!fmt || !(fmt->flags & AVFMT_NOFILE)) {
-@@ -910,6 +933,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
+@@ -910,6 +933,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
{
AVStream *st;
int len, ret, i;
-+ int stream_index;
-+ stream_index = 0;
++ int stream_index = 0;
av_init_packet(pkt);
-@@ -943,8 +968,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
+@@ -943,8 +967,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
/* return packet if any */
if (pkt->size) {
got_packet:
@@ -65,7 +64,7 @@ index 0c1a50d..f1b86a3 100644
pkt->pts = st->parser->pts;
pkt->dts = st->parser->dts;
pkt->pos = st->parser->pos;
-@@ -968,6 +993,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
+@@ -968,6 +992,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
AVPacket cur_pkt;
/* read next packet */
ret = av_read_packet(s, &cur_pkt);
@@ -73,7 +72,7 @@ index 0c1a50d..f1b86a3 100644
if (ret < 0) {
if (ret == AVERROR(EAGAIN))
return ret;
-@@ -980,8 +1006,9 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
+@@ -980,8 +1005,9 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
NULL, 0,
AV_NOPTS_VALUE, AV_NOPTS_VALUE,
AV_NOPTS_VALUE);
More information about the FFmpeg-soc
mailing list