@ -225,6 +225,13 @@ int ff_img_read_header(AVFormatContext *s1)
}
}
if ( ! s - > is_pipe ) {
if ( ! s - > is_pipe ) {
if ( s - > pattern_type = = PT_DEFAULT ) {
if ( s1 - > pb ) {
s - > pattern_type = PT_NONE ;
} else
s - > pattern_type = PT_GLOB_SEQUENCE ;
}
if ( s - > pattern_type = = PT_GLOB_SEQUENCE ) {
if ( s - > pattern_type = = PT_GLOB_SEQUENCE ) {
s - > use_glob = is_glob ( s - > path ) ;
s - > use_glob = is_glob ( s - > path ) ;
if ( s - > use_glob ) {
if ( s - > use_glob ) {
@ -557,7 +564,7 @@ const AVOption ff_img_options[] = {
{ " framerate " , " set the video framerate " , OFFSET ( framerate ) , AV_OPT_TYPE_VIDEO_RATE , { . str = " 25 " } , 0 , 0 , DEC } ,
{ " framerate " , " set the video framerate " , OFFSET ( framerate ) , AV_OPT_TYPE_VIDEO_RATE , { . str = " 25 " } , 0 , 0 , DEC } ,
{ " loop " , " force loop over input file sequence " , OFFSET ( loop ) , AV_OPT_TYPE_BOOL , { . i64 = 0 } , 0 , 1 , DEC } ,
{ " loop " , " force loop over input file sequence " , OFFSET ( loop ) , AV_OPT_TYPE_BOOL , { . i64 = 0 } , 0 , 1 , DEC } ,
{ " pattern_type " , " set pattern type " , OFFSET ( pattern_type ) , AV_OPT_TYPE_INT , { . i64 = PT_GLOB_SEQUENCE } , 0 , INT_MAX , DEC , " pattern_type " } ,
{ " pattern_type " , " set pattern type " , OFFSET ( pattern_type ) , AV_OPT_TYPE_INT , { . i64 = PT_DEFAULT } , 0 , INT_MAX , DEC , " pattern_type " } ,
{ " glob_sequence " , " select glob/sequence pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_GLOB_SEQUENCE } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,
{ " glob_sequence " , " select glob/sequence pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_GLOB_SEQUENCE } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,
{ " glob " , " select glob pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_GLOB } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,
{ " glob " , " select glob pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_GLOB } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,
{ " sequence " , " select sequence pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_SEQUENCE } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,
{ " sequence " , " select sequence pattern type " , 0 , AV_OPT_TYPE_CONST , { . i64 = PT_SEQUENCE } , INT_MIN , INT_MAX , DEC , " pattern_type " } ,