mirror of https://git.ffmpeg.org/ffmpeg.git
loop hack
Originally committed as revision 3687 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7f8038ce88
commit
b339fb00ba
|
@ -19,6 +19,9 @@
|
||||||
*/
|
*/
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
|
|
||||||
|
/* XXX: this is a hack */
|
||||||
|
extern int loop_input;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int img_first;
|
int img_first;
|
||||||
int img_last;
|
int img_last;
|
||||||
|
@ -216,9 +219,9 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
||||||
|
|
||||||
if (!s->is_pipe) {
|
if (!s->is_pipe) {
|
||||||
/* loop over input */
|
/* loop over input */
|
||||||
/* if (loop_input && s->img_number > s->img_last) {
|
if (loop_input && s->img_number > s->img_last) {
|
||||||
s->img_number = s->img_first;
|
s->img_number = s->img_first;
|
||||||
}*/
|
}
|
||||||
if (get_frame_filename(filename, sizeof(filename),
|
if (get_frame_filename(filename, sizeof(filename),
|
||||||
s->path, s->img_number)<0 && s->img_number > 1)
|
s->path, s->img_number)<0 && s->img_number > 1)
|
||||||
return AVERROR_IO;
|
return AVERROR_IO;
|
||||||
|
|
Loading…
Reference in New Issue