summaryrefslogtreecommitdiff
path: root/libavformat/img.c
diff options
context:
space:
mode:
authorMichel Bardiaux <mbardiaux@peaktime.be>2006-09-04 09:57:47 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-09-04 09:57:47 +0000
commit5c07cf535ffe0743bf332f9b98b82f48ee016517 (patch)
tree4ae77f2bb314c8a7a9e113205ceac1899407c2a5 /libavformat/img.c
parent22e469590583ebff6305698f0a49676007a6509a (diff)
Clarified API for numbered sequences, patch by Michel Bardiaux % mbardiaux A mediaxim P be %
Original thread: Date: Aug 30, 2006 4:54 PM Subject: [Ffmpeg-devel] [PATCH] Clarified API for numbered sequences Originally committed as revision 6166 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/img.c')
-rw-r--r--libavformat/img.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/img.c b/libavformat/img.c
index 2d12e31d06..ebfc914311 100644
--- a/libavformat/img.c
+++ b/libavformat/img.c
@@ -44,7 +44,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
/* find the first image */
for(first_index = 0; first_index < 5; first_index++) {
- if (get_frame_filename(buf, sizeof(buf), path, first_index) < 0)
+ if (av_get_frame_filename(buf, sizeof(buf), path, first_index) < 0)
goto fail;
if (url_exist(buf))
break;
@@ -61,8 +61,8 @@ static int find_image_range(int *pfirst_index, int *plast_index,
range1 = 1;
else
range1 = 2 * range;
- if (get_frame_filename(buf, sizeof(buf), path,
- last_index + range1) < 0)
+ if (av_get_frame_filename(buf, sizeof(buf), path,
+ last_index + range1) < 0)
goto fail;
if (!url_exist(buf))
break;
@@ -86,7 +86,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
static int image_probe(AVProbeData *p)
{
- if (filename_number_test(p->filename) >= 0 && guess_image_format(p->filename))
+ if (av_filename_number_test(p->filename) && guess_image_format(p->filename))
return AVPROBE_SCORE_MAX-1;
else
return 0;
@@ -144,7 +144,7 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap)
/* compute duration */
st->start_time = 0;
st->duration = last_index - first_index + 1;
- if (get_frame_filename(buf, sizeof(buf), s->path, s->img_number) < 0)
+ if (av_get_frame_filename(buf, sizeof(buf), s->path, s->img_number) < 0)
goto fail;
if (url_fopen(f, buf, URL_RDONLY) < 0)
goto fail;
@@ -200,8 +200,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
if (s1->loop_input && s->img_number > s->img_last) {
s->img_number = s->img_first;
}
- if (get_frame_filename(filename, sizeof(filename),
- s->path, s->img_number) < 0)
+ if (av_get_frame_filename(filename, sizeof(filename),
+ s->path, s->img_number) < 0)
return AVERROR_IO;
f = &f1;
if (url_fopen(f, filename, URL_RDONLY) < 0)
@@ -307,8 +307,8 @@ static int img_write_packet(AVFormatContext *s, AVPacket *pkt)
picture = (AVPicture *)pkt->data;
if (!img->is_pipe) {
- if (get_frame_filename(filename, sizeof(filename),
- img->path, img->img_number) < 0)
+ if (av_get_frame_filename(filename, sizeof(filename),
+ img->path, img->img_number) < 0)
return AVERROR_IO;
pb = &pb1;
if (url_fopen(pb, filename, URL_WRONLY) < 0)